From cd596ae8ed7e039240735ab5bf51551220661d0e Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 30 May 2026 10:39:06 +0200 Subject: [PATCH] change no strip for debug --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 40d4a09..3883965 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") -- 2.47.3