1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-27 07:02:30 +02:00

Fix bazel build testing for macos arm64 (#358)

This commit is contained in:
Mykola Hohsadze 2024-08-28 12:28:12 +03:00 committed by GitHub
parent c6bb479895
commit 881690080d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"],