Add CONFIG_NDEBUG Kconfig to control NDEBUG definition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
8defb843aa
commit
d056834605
4
Kconfig
4
Kconfig
|
@ -557,6 +557,10 @@ endmenu # Customize Header Files
|
||||||
|
|
||||||
menu "Debug Options"
|
menu "Debug Options"
|
||||||
|
|
||||||
|
config NDEBUG
|
||||||
|
bool "Define NDEBUG globally"
|
||||||
|
default y
|
||||||
|
|
||||||
config DEBUG_ALERT
|
config DEBUG_ALERT
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -535,6 +535,9 @@ endef
|
||||||
# ARCHxxx means the predefined setting(either toolchain, arch, or system specific)
|
# ARCHxxx means the predefined setting(either toolchain, arch, or system specific)
|
||||||
|
|
||||||
ARCHDEFINES += ${shell $(DEFINE) "$(CC)" __NuttX__}
|
ARCHDEFINES += ${shell $(DEFINE) "$(CC)" __NuttX__}
|
||||||
|
ifeq ($(CONFIG_NDEBUG),y)
|
||||||
|
ARCHDEFINES += ${shell $(DEFINE) "$(CC)" NDEBUG}
|
||||||
|
endif
|
||||||
|
|
||||||
# The default C/C++ search path
|
# The default C/C++ search path
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue