libc/assert: let CONFIG_NDEBUG default to !CONFIG_DEBUG_ASSERTIONS

so the user could just change CONFIG_DEBUG_ASSERTIONS in most case

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-30 20:51:41 +08:00 committed by Petro Karashchenko
parent 577f301a2c
commit bbdbca00c1
2 changed files with 1 additions and 2 deletions

View File

@ -559,7 +559,7 @@ menu "Debug Options"
config NDEBUG
bool "Define NDEBUG globally"
default y
default !DEBUG_ASSERTIONS
config DEBUG_ALERT
bool

View File

@ -6,7 +6,6 @@
# modifications.
#
# CONFIG_DISABLE_OS_API is not set
# CONFIG_NDEBUG is not set
# CONFIG_NSH_DISABLE_LOSMART is not set
CONFIG_ARCH="risc-v"
CONFIG_ARCH_BOARD="icicle"