From: Bastian Dehn Date: Sat, 30 May 2026 08:39:06 +0000 (+0200) Subject: change no strip for debug X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=cd596ae8ed7e039240735ab5bf51551220661d0e;p=feierabend.git change no strip for debug --- 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}")