Merge pull request #665 from ranisalt/master
Use native optimizations instead of hardcoded defaults
This commit is contained in:
commit
34e2fa1d49
|
@ -170,7 +170,7 @@ set(CMAKE_CXX_FLAGS_COMPILESPEED "-O0")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
||||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O1 -g -fno-omit-frame-pointer")
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O1 -g -fno-omit-frame-pointer")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
|
||||||
set(CMAKE_CXX_FLAGS_PERFORMANCE "-Ofast -mmmx -msse -msse2")
|
set(CMAKE_CXX_FLAGS_PERFORMANCE "-Ofast -march=native")
|
||||||
|
|
||||||
if(USE_LTO)
|
if(USE_LTO)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fwhole-program -flto")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fwhole-program -flto")
|
||||||
|
|
Loading…
Reference in New Issue