]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
disable OPTIMISE by default
authorKonstantinos Margaritis <markos@freevec.org>
Mon, 12 Jul 2021 18:12:21 +0000 (21:12 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:34 +0000 (11:51 +0300)
CMakeLists.txt

index e6ba66b9b5ca549a68e9cb5c2ea6af6b0634293b..75fee1ec3e5e9a21f08c07266860d45761331748 100644 (file)
@@ -33,8 +33,10 @@ endif()
 if(CMAKE_BUILD_TYPE MATCHES NONE|RELEASE|RELWITHDEBINFO|MINSIZEREL)
     message(STATUS "using release build")
     set(RELEASE_BUILD TRUE)
+    set(OPTIMISE TRUE)
 else()
     set(RELEASE_BUILD FALSE)
+    set(OPTIMISE FALSE)
 endif()
 
 set(BINDIR "${PROJECT_BINARY_DIR}/bin")
@@ -97,7 +99,7 @@ if(${RAGEL} STREQUAL "RAGEL-NOTFOUND")
     message(FATAL_ERROR "Ragel state machine compiler not found")
 endif()
 
-option(OPTIMISE "Turns off compiler optimizations (on by default unless debug output enabled or coverage testing)" TRUE)
+option(OPTIMISE "Turns off compiler optimizations (on by default unless debug output enabled or coverage testing)" FALSE)
 
 option(DEBUG_OUTPUT "Enable debug output (warning: very verbose)" FALSE)