mirror of https://github.com/ArduPilot/ardupilot
waf: set NDEBUG define to avoid assert issues
this avoids future assert() calls from affecting STM32 HAL_ChibiOS builds
This commit is contained in:
parent
f926c27470
commit
5304dfe213
|
@ -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 += [
|
||||
|
|
Loading…
Reference in New Issue