Skip to content

Commit 73f1ecb

Browse files
keithcopybara-github
authored andcommitted
Fix android emulator darwin_arm64 select
This fixes this condition printing a strange error if you try to run these on macOS. In general this still doesn't work because of bazelbuild#7069 but if we ever want to support it this is a pre-requisite to supporting arm macs Closes bazelbuild#15092. PiperOrigin-RevId: 444912275
1 parent 649521a commit 73f1ecb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_sdk_repository_template.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ filegroup(
6969
filegroup(
7070
name = "qemu2_x86",
7171
srcs = ["emulator/emulator"] + select({
72-
"@bazel_tools//src/conditions:darwin": ["emulator/qemu/darwin-x86_64/qemu-system-i386"],
72+
"@bazel_tools//src/conditions:darwin_x86_64": ["emulator/qemu/darwin-x86_64/qemu-system-i386"],
73+
"@bazel_tools//src/conditions:darwin_arm64": ["emulator/qemu/darwin-aarch64/qemu-system-aarch64"],
7374
"//conditions:default": ["emulator/qemu/linux-x86_64/qemu-system-i386"],
7475
}),
7576
)

0 commit comments

Comments
 (0)