We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9ab31e + 9c4433e commit 0d43cc4Copy full SHA for 0d43cc4
cmake/UserOverride.cmake
@@ -9,7 +9,12 @@
9
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
10
# g++
11
set(common "-Wall -Wextra")
12
- set(CMAKE_CXX_FLAGS_RELEASE_INIT "${common} -O3 -march=native -funroll-loops -DNDEBUG")
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "ppc|powerpc")
13
+ set(native "-mtune=native")
14
+ else ()
15
+ set(native "-march=native")
16
+ endif ()
17
+ set(CMAKE_CXX_FLAGS_RELEASE_INIT "${common} -O3 ${native} -funroll-loops -DNDEBUG")
18
set(CMAKE_CXX_FLAGS_DEBUG_INIT "${common} -g -ggdb")
19
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
20
# icpc
0 commit comments