We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8646e29 commit a00ba58Copy full SHA for a00ba58
CMakeLists.txt
@@ -23,13 +23,14 @@ if (NOT WIN32 AND NOT APPLE)
23
endif()
24
25
if((CMAKE_CXX_COMPILER_ID MATCHES "Clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "GNU"))
26
- if(NOT PORTABLE_BUILD)
27
- if(NOT ((${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") OR (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64")))
+ if(NOT ((${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") OR (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64")))
+ if(NOT PORTABLE_BUILD)
28
message("Building with native optimizations")
29
add_compile_options(-march=native)
30
+ else()
31
+ message("Building portable binaries")
32
+ add_compile_options(-march=nehalem)
33
- else()
- message("Building portable binaries")
34
35
36
0 commit comments