]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
change no strip for debug
authorBastian Dehn <hhaalo@arcor.de>
Sat, 30 May 2026 08:39:06 +0000 (10:39 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 30 May 2026 08:39:06 +0000 (10:39 +0200)
CMakeLists.txt

index 40d4a09c2622f6c340b4ce143c815c7aced4e869..38839650b7fdfb8a23753a6068ba7cec98640cf3 100644 (file)
@@ -4,10 +4,10 @@ project(feierabend-c)
 
 set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "build type")
 
-if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
-       set(CMAKE_C_FLAGS "-s -std=c99 -Wall -Wextra -pedantic -g -fsanitize=address")
-else()
+if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
        set(CMAKE_C_FLAGS "-s -std=c99 -Werror -Wextra -pedantic")
+else()
+       set(CMAKE_C_FLAGS "-std=c99 -Wall -Wextra -pedantic -g -fsanitize=address")
 endif()
 
 message(STATUS "CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")