Skip to content

Commit 8816900

Browse files
authored
Fix bazel build testing for macos arm64 (#358)
1 parent c6bb479 commit 8816900

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ cc_library(
322322
copts = C99_FLAGS,
323323
defines = selects.with_or({
324324
PLATFORM_CPU_X86_64: ["CPU_FEATURES_MOCK_CPUID_X86"],
325+
PLATFORM_CPU_ARM64: [
326+
"CPU_FEATURES_MOCK_CPUID_AARCH64",
327+
"CPU_FEATURES_MOCK_SYSCTL_AARCH64",
328+
],
325329
"//conditions:default": [],
326330
}) + selects.with_or({
327331
PLATFORM_OS_MACOS: ["HAVE_SYSCTLBYNAME"],

0 commit comments

Comments
 (0)