Skip to content

Commit

Permalink
Fix android emulator darwin_arm64 select (bazelbuild#15445)
Browse files Browse the repository at this point in the history
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

Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
  • Loading branch information
2 people authored and meteorcloudy committed May 10, 2022
1 parent 652b48e commit e1ea2a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ filegroup(
filegroup(
name = "qemu2_x86",
srcs = ["emulator/emulator"] + select({
"@bazel_tools//src/conditions:darwin": ["emulator/qemu/darwin-x86_64/qemu-system-i386"],
"@bazel_tools//src/conditions:darwin_x86_64": ["emulator/qemu/darwin-x86_64/qemu-system-i386"],
"@bazel_tools//src/conditions:darwin_arm64": ["emulator/qemu/darwin-aarch64/qemu-system-aarch64"],
"//conditions:default": ["emulator/qemu/linux-x86_64/qemu-system-i386"],
}),
)
Expand Down

0 comments on commit e1ea2a9

Please sign in to comment.