We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 847fdfb commit 8ba011dCopy full SHA for 8ba011d
cpp/CMakeLists.txt
@@ -50,12 +50,11 @@ if (FORCE_AVX2)
50
-ftree-vectorizer-verbose=0
51
)
52
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
53
- target_compile_options(
54
- compile-options
55
- INTERFACE -O2
56
- -mavx2
57
- -mfma
58
- -fpic)
+ target_compile_options(compile-options INTERFACE -O2 -fpic)
+
+ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
+ target_compile_options(compile-options INTERFACE -mavx2 -mfma)
+ endif()
59
elseif(MSVC)
60
target_compile_options(
61
compile-options
0 commit comments