summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndreas Fried <andreas.fried@kit.edu>2019-06-18 14:59:27 +0200
committerAndreas Fried <andreas.fried@kit.edu>2019-06-18 14:59:44 +0200
commit52e3d4e1e36d5f5eeb0945789e31379bda420045 (patch)
tree8a8ef8b34e5e67a9d2b4e8369bfe688ca2d032c0
parentad25a8e4951584822b60b76585a02f2395932c61 (diff)
Add -g flag to cmake debug build flags.
Apparently the implicit -g is lost when setting -DDEBUG_libfirm.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c605556..8ce8230 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ set(PROJECT_DESCRIPTION "library implementing the intermediate representation Fi
set(CMAKE_C_VISIBILITY_PRESET hidden)
-set(CMAKE_C_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG_libfirm")
+set(CMAKE_C_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -DDEBUG_libfirm")
set(SOURCES
ir/adt/array.c