aboutsummaryrefslogtreecommitdiff
path: root/cmake/toolchain/arm-none-eabi-gcc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/toolchain/arm-none-eabi-gcc.cmake')
-rw-r--r--cmake/toolchain/arm-none-eabi-gcc.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/toolchain/arm-none-eabi-gcc.cmake b/cmake/toolchain/arm-none-eabi-gcc.cmake
index 701824f..11a1191 100644
--- a/cmake/toolchain/arm-none-eabi-gcc.cmake
+++ b/cmake/toolchain/arm-none-eabi-gcc.cmake
@@ -44,6 +44,7 @@ set(CMAKE_CXX_STANDARD 14)
add_compile_options(
-mcpu=${TARGET_CPU}
-mthumb
+ "$<$<CONFIG:DEBUG>:-gdwarf-3>"
"$<$<COMPILE_LANGUAGE:CXX>:-fno-unwind-tables;-fno-rtti;-fno-exceptions>")
# Compile defines
@@ -80,11 +81,11 @@ add_compile_options(
-Wsign-compare
-Wunused
-Wswitch-default
-# -Wformat
+ -Wformat
-Wdouble-promotion
-Wredundant-decls
-Wshadow
-# -Wcast-align
+ -Wcast-align
-Wnull-dereference
-Wno-format-extra-args
-Wno-unused-function