From 8d330784b2e9a49f494d015fb56d22f4bfa75d7f Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 27 Jul 2016 11:46:09 -0700 Subject: [PATCH] CFlags: Add "-g" compiler option for debug symbols. --- firmware/application/CMakeLists.txt | 2 +- firmware/baseband/CMakeLists.txt | 2 +- firmware/bootstrap/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/application/CMakeLists.txt b/firmware/application/CMakeLists.txt index f4190523..fee94a09 100644 --- a/firmware/application/CMakeLists.txt +++ b/firmware/application/CMakeLists.txt @@ -29,7 +29,7 @@ enable_language(C CXX ASM) project(application) # Compiler options here. -set(USE_OPT "-Os --specs=nano.specs") +set(USE_OPT "-Os -g --specs=nano.specs") # C specific options here (added to USE_OPT). set(USE_COPT "-std=gnu99") diff --git a/firmware/baseband/CMakeLists.txt b/firmware/baseband/CMakeLists.txt index 54010d73..2a8b1b53 100644 --- a/firmware/baseband/CMakeLists.txt +++ b/firmware/baseband/CMakeLists.txt @@ -29,7 +29,7 @@ enable_language(C CXX ASM) project(baseband_shared) # Compiler options here. -set(USE_OPT "-O3 -falign-functions=16 -fno-math-errno --specs=nano.specs") +set(USE_OPT "-O3 -g -falign-functions=16 -fno-math-errno --specs=nano.specs") # C specific options here (added to USE_OPT). set(USE_COPT "-std=gnu99") diff --git a/firmware/bootstrap/CMakeLists.txt b/firmware/bootstrap/CMakeLists.txt index 4c4d5a41..7f837998 100644 --- a/firmware/bootstrap/CMakeLists.txt +++ b/firmware/bootstrap/CMakeLists.txt @@ -29,7 +29,7 @@ enable_language(C CXX ASM) project(bootstrap) # Compiler options here. -set(USE_OPT "-Os -falign-functions=16 -fno-math-errno --specs=nano.specs") +set(USE_OPT "-Os -g -falign-functions=16 -fno-math-errno --specs=nano.specs") # C specific options here (added to USE_OPT). set(USE_COPT "-std=gnu99")