aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-02-16 22:05:19 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-02-16 22:05:19 +0100
commitc62b45b202065d15ce0860b7e143ccb18fa54de3 (patch)
tree4a203a974ed6b2b67cce9784e8ee7a8053e91c38
parent530cd5038aa0f6f3f02ef34980b0970b0406f32e (diff)
downloadyawa-c62b45b202065d15ce0860b7e143ccb18fa54de3.tar.xz
Build with -ggdb on DEBUG build
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e6887ea..0b21544 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -28,6 +28,7 @@ configure_file(
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_COMPILER "clang")
set(CMAKE_C_FLAGS "-Weverything -fstack-protector-all -fPIE ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS_DEBUG "-ggdb")
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-z,relro -Wl,-z,now -pie ${CMAKE_EXE_LINKER_FLAG}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)