Skip to content

Commit a00ba58

Browse files
committed
Using nehalem arch in portable build
1 parent 8646e29 commit a00ba58

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ if (NOT WIN32 AND NOT APPLE)
2323
endif()
2424

2525
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")))
26+
if(NOT ((${CMAKE_SYSTEM_PROCESSOR} STREQUAL "aarch64") OR (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm64")))
27+
if(NOT PORTABLE_BUILD)
2828
message("Building with native optimizations")
2929
add_compile_options(-march=native)
30+
else()
31+
message("Building portable binaries")
32+
add_compile_options(-march=nehalem)
3033
endif()
31-
else()
32-
message("Building portable binaries")
3334
endif()
3435
endif()
3536

0 commit comments

Comments
 (0)