Skip to content

Commit f08e45a

Browse files
authored
build: introduce bazel support for Darwin ARM64 builds
This was recently added to the CMake build system but was not replicated to the bazel build. Attempt to bring this into parity. While the Darwin ARM64 port is incomplete, this allows us to maintain build system parity.
1 parent 0cf4f74 commit f08e45a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

BUILD

+14
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ config_setting(
3737
],
3838
)
3939

40+
config_setting(
41+
name = "darwin-arm64",
42+
constraint_values = [
43+
"@platforms//os:macos",
44+
"@platforms//cpu:arm64",
45+
]
46+
)
47+
4048
config_setting(
4149
name = "darwin-x86_64",
4250
constraint_values = [
@@ -464,6 +472,12 @@ filegroup(
464472
"Sources/Host/Linux/X86_64/PTraceX86_64.cpp",
465473
"Sources/Target/Linux/X86_64/ProcessX86_64.cpp",
466474
],
475+
":darwin-arm64": [
476+
"Sources/Host/Darwin/ARM64/MachARM64.cpp",
477+
"Sources/Host/Darwin/ARM64/PTraceARM64.cpp",
478+
"Sources/Target/Darwin/ARM64/ProcessARM64.cpp",
479+
"Sources/Target/Darwin/ARM64/ThreadARM64.cpp",
480+
],
467481
":darwin-x86_64": [
468482
"Sources/Host/Darwin/X86_64/MachX86_64.cpp",
469483
"Sources/Host/Darwin/X86_64/PTraceX86_64.cpp",

0 commit comments

Comments
 (0)