mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
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',
|
'--specs=nosys.specs',
|
||||||
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
|
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
|
||||||
'-D__USE_CMSIS',
|
'-D__USE_CMSIS',
|
||||||
'-Werror=deprecated-declarations'
|
'-Werror=deprecated-declarations',
|
||||||
|
'-DNDEBUG=1'
|
||||||
]
|
]
|
||||||
if not cfg.options.Werror:
|
if not cfg.options.Werror:
|
||||||
env.CFLAGS += [
|
env.CFLAGS += [
|
||||||
|
Loading…
Reference in New Issue
Block a user