waf: set NDEBUG define to avoid assert issues

this avoids future assert() calls from affecting STM32 HAL_ChibiOS
builds
This commit is contained in:
Andrew Tridgell 2021-03-25 15:00:37 +11:00
parent f926c27470
commit 5304dfe213
1 changed files with 2 additions and 1 deletions

View File

@ -618,7 +618,8 @@ class chibios(Board):
'--specs=nosys.specs',
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
'-D__USE_CMSIS',
'-Werror=deprecated-declarations'
'-Werror=deprecated-declarations',
'-DNDEBUG=1'
]
if not cfg.options.Werror:
env.CFLAGS += [