mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
build system: use -Og instead of -O0 for debug builds, expand help text in menuconfig
This commit is contained in:
parent
34fa6a60a9
commit
39a06319e2
5
Kconfig
5
Kconfig
@ -27,7 +27,10 @@ choice OPTIMIZATION_LEVEL
|
||||
prompt "Optimization level"
|
||||
default OPTIMIZATION_LEVEL_DEBUG
|
||||
help
|
||||
This option sets compiler optimization level.
|
||||
This option sets optimization level.
|
||||
For "Release" setting, -Os flag is added to CFLAGS,
|
||||
and -DNDEBUG flag is added to CPPFLAGS.
|
||||
For "Debug" setting, -Og flag is added to CFLAGS.
|
||||
config OPTIMIZATION_LEVEL_DEBUG
|
||||
bool "Debug"
|
||||
config OPTIMIZATION_LEVEL_RELEASE
|
||||
|
@ -179,7 +179,7 @@ ifneq ("$(CONFIG_OPTIMIZATION_LEVEL_RELEASE)","")
|
||||
OPTIMIZATION_FLAGS = -Os
|
||||
CPPFLAGS += -DNDEBUG
|
||||
else
|
||||
OPTIMIZATION_FLAGS = -O0
|
||||
OPTIMIZATION_FLAGS = -Og
|
||||
endif
|
||||
|
||||
# Enable generation of debugging symbols
|
||||
|
Loading…
x
Reference in New Issue
Block a user