Skip to content

Commit

Permalink
Add support for compiling on Apple Silicon.
Browse files Browse the repository at this point in the history
Defines new platform `darwin_arm64`.

RELNOTES: Add support to bazel/crosstool for building arm64 on macos aka darwin
PiperOrigin-RevId: 320064480
  • Loading branch information
dmaclach authored and copybara-github committed Jul 7, 2020
1 parent 8545304 commit b235517
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public enum ApplePlatform implements ApplePlatformApi {
// migrating it would be a breaking change more details:
// https://github.com/bazelbuild/bazel/pull/7062
private static final ImmutableSet<String> MACOS_TARGET_CPUS =
ImmutableSet.of("darwin_x86_64", "darwin");
ImmutableSet.of("darwin_x86_64", "darwin_arm64", "darwin");

private static final ImmutableSet<String> BIT_32_TARGET_CPUS =
ImmutableSet.of("ios_i386", "ios_armv7", "ios_armv7s", "watchos_i386", "watchos_armv7k");
Expand Down

0 comments on commit b235517

Please sign in to comment.