1
0
Fork 0

Sett RelWithDebInfo opt flags

Ensure we use O3 for AppImage builds
This commit is contained in:
Automatic Release Builder 2020-09-27 10:19:21 +01:00 committed by James Turner
parent 18aabbdbb5
commit 2fe55d1e6b

View file

@ -369,6 +369,9 @@ if(CMAKE_COMPILER_IS_GNUCXX)
if (X86 OR X86_64)
set(SIMD_COMPILER_FLAGS "-msse2 -mfpmath=sse -ftree-vectorize -ftree-slp-vectorize")
endif()
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG")
endif(CMAKE_COMPILER_IS_GNUCXX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" )