Skip to content

Commit

Permalink
Fix bazel build testing for macos arm64 (google#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
toor1245 authored Aug 28, 2024
1 parent c6bb479 commit 8816900
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ cc_library(
copts = C99_FLAGS,
defines = selects.with_or({
PLATFORM_CPU_X86_64: ["CPU_FEATURES_MOCK_CPUID_X86"],
PLATFORM_CPU_ARM64: [
"CPU_FEATURES_MOCK_CPUID_AARCH64",
"CPU_FEATURES_MOCK_SYSCTL_AARCH64",
],
"//conditions:default": [],
}) + selects.with_or({
PLATFORM_OS_MACOS: ["HAVE_SYSCTLBYNAME"],
Expand Down

0 comments on commit 8816900

Please sign in to comment.