Skip to content

Instantly share code, notes, and snippets.

@tnishinaga
Created January 16, 2021 00:59
Show Gist options
  • Save tnishinaga/08ce70aef51b000a682ddb13cdb84949 to your computer and use it in GitHub Desktop.
Save tnishinaga/08ce70aef51b000a682ddb13cdb84949 to your computer and use it in GitHub Desktop.
diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt
index 6d8a539f1b16..249ed7065f8e 100644
--- a/openmp/runtime/CMakeLists.txt
+++ b/openmp/runtime/CMakeLists.txt
@@ -69,7 +69,7 @@ endif()
# FUJITSU A64FX is a special processor because its cache line size is 256.
# We need to pass this information into kmp_config.h.
-if(LIBOMP_ARCH STREQUAL "aarch64")
+if(LIBOMP_ARCH STREQUAL "aarch64" AND NOT APPLE)
libomp_is_aarch64_a64fx(LIBOMP_DETECT_AARCH64_A64FX)
if (LIBOMP_DETECT_AARCH64_A64FX)
set(LIBOMP_ARCH "aarch64_a64fx")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment