waf: disable use of libc realloc for chibios

This commit is contained in:
bugobliterator 2020-03-17 14:36:28 +05:30 committed by Randy Mackay
parent 10aa97f958
commit f163448298
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,7 @@ class chibios(Board):
env.DEFINES.update(
CONFIG_HAL_BOARD = 'HAL_BOARD_CHIBIOS',
HAVE_STD_NULLPTR_T = 0,
USE_LIBC_REALLOC = 0,
)
env.AP_LIBRARIES += [
@ -482,6 +483,7 @@ class chibios(Board):
'--specs=nano.specs',
'-specs=nosys.specs',
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
'-Werror=deprecated-declarations'
]
env.CXXFLAGS += env.CFLAGS + [
'-fno-rtti',