mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 07:04:32 +02:00
build system: use -Og instead of -O0 for debug builds, expand help text in menuconfig
This commit is contained in:
5
Kconfig
5
Kconfig
@@ -27,7 +27,10 @@ choice OPTIMIZATION_LEVEL
|
|||||||
prompt "Optimization level"
|
prompt "Optimization level"
|
||||||
default OPTIMIZATION_LEVEL_DEBUG
|
default OPTIMIZATION_LEVEL_DEBUG
|
||||||
help
|
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
|
config OPTIMIZATION_LEVEL_DEBUG
|
||||||
bool "Debug"
|
bool "Debug"
|
||||||
config OPTIMIZATION_LEVEL_RELEASE
|
config OPTIMIZATION_LEVEL_RELEASE
|
||||||
|
@@ -179,7 +179,7 @@ ifneq ("$(CONFIG_OPTIMIZATION_LEVEL_RELEASE)","")
|
|||||||
OPTIMIZATION_FLAGS = -Os
|
OPTIMIZATION_FLAGS = -Os
|
||||||
CPPFLAGS += -DNDEBUG
|
CPPFLAGS += -DNDEBUG
|
||||||
else
|
else
|
||||||
OPTIMIZATION_FLAGS = -O0
|
OPTIMIZATION_FLAGS = -Og
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Enable generation of debugging symbols
|
# Enable generation of debugging symbols
|
||||||
|
Reference in New Issue
Block a user