fix generate_projects.sh fails in M1 Mac (#31868)

* fix generate_projects.sh fails in m1 mac

* use buildozer-linux-arm64 for linux arm64 platform
pull/32007/head^2
Hannah Shi 2 years ago committed by GitHub
parent 8bd2b9af52
commit 2adab34f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tools/distrib/buildozer.sh
  2. 1
      tools/distrib/fix_build_deps.py

@ -30,10 +30,12 @@ function error_handling() {
}
function download_buildozer() {
platform="$(uname -s)"
platform="$(uname -sm)"
case "${platform}" in
Linux*) download_link="https://github.com/bazelbuild/buildtools/releases/download/${BUILDOZER_VERSION}/buildozer-linux-amd64";;
Darwin*) download_link="https://github.com/bazelbuild/buildtools/releases/download/${BUILDOZER_VERSION}/buildozer-darwin-amd64";;
"Linux x86_64") download_link="https://github.com/bazelbuild/buildtools/releases/download/${BUILDOZER_VERSION}/buildozer-linux-amd64";;
"Linux aarch64") download_link="https://github.com/bazelbuild/buildtools/releases/download/${BUILDOZER_VERSION}/buildozer-linux-arm64";;
"Darwin x86_64") download_link="https://github.com/bazelbuild/buildtools/releases/download/${BUILDOZER_VERSION}/buildozer-darwin-amd64";;
"Darwin arm64") download_link="https://github.com/bazelbuild/buildtools/releases/download/${BUILDOZER_VERSION}/buildozer-darwin-arm64";;
*) error_handling "Unsupported platform: ${platform}";;
esac

@ -637,6 +637,7 @@ def make_library(library):
return (library, error, deps, external_deps)
if __name__ == "__main__":
update_libraries = []
for library in sorted(consumes.keys()):
if library in no_update:

Loading…
Cancel
Save