Skip to content
Snippets Groups Projects

+ compiler options -fno-omit-frame-pointer -march=native

Merged Wuttke, Joachim requested to merge cmake into main
1 file
+ 12
1
Compare changes
  • Side-by-side
  • Inline
+ 12
1
@@ -26,13 +26,24 @@ if(WIN32)
set(WINDOWS_EXPORT_ALL_SYMBOLS ON)
message(STATUS "compiling for Windows")
endif()
add_compile_options(-O2)
add_compile_options(-fno-omit-frame-pointer)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "GNU" )
option(PORTABLE "Build a portable binary without host-specific optimization" OFF)
if(NOT PORTABLE)
add_compile_options(-march=native)
endif()
endif()
if(PEDANTIC)
add_compile_options(-pedantic -Wall)
endif()
if(WERROR)
add_compile_options(-Werror)
endif()
if (CMAKE_BUILD_TYPE MATCHES Debug)
add_compile_options(-g)
else()
add_compile_options(-O3)
endif()
## Install settings.
Loading