You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using M1 Macs, if Rosetta is enabled, we need to prepend the command "arch --arch arm64" to force a launch of an arm64 process. The use case is to build a proper arm64 Bazel binary.
However, if we build Bazel itself using Bazelisk, we will get an improper binary that is built not for arm64 as shown by the file command:
file
Mach-O 64-bit executable x86_64
To get around this, we've had to use the Python wrapper. But because this is explicitly called out as legacy code, we'd like to not have to do this.
When using M1 Macs, if Rosetta is enabled, we need to prepend the command "arch --arch arm64" to force a launch of an arm64 process. The use case is to build a proper arm64 Bazel binary.
However, if we build Bazel itself using Bazelisk, we will get an improper binary that is built not for arm64 as shown by the file command:
file
Mach-O 64-bit executable x86_64
To get around this, we've had to use the Python wrapper. But because this is explicitly called out as legacy code, we'd like to not have to do this.
Hash: cf1205e
Reproduction steps
Build the Bazel repo with bazelisk
arch --arch arm64 bazelisk build //src:bazel
Validate the output using file
file bazel-bin/src/bazel
Make sure that the output has:
Mach-O 64-bit executable arm64
The text was updated successfully, but these errors were encountered: