waf: ensure that C files get same ABI flags as C++

This commit is contained in:
Andrew Tridgell 2018-10-04 11:26:11 +10:00
parent bcc1bd9752
commit 31548c983a
1 changed files with 7 additions and 8 deletions

View File

@ -333,10 +333,8 @@ class chibios(Board):
# make board name available for USB IDs
env.CHIBIOS_BOARD_NAME = 'HAL_BOARD_NAME="%s"' % self.name
env.CFLAGS += [
env.CFLAGS += cfg.env.CPU_FLAGS + [
'-Wno-cast-align',
]
env.CXXFLAGS += cfg.env.CPU_FLAGS + [
'-Wlogical-op',
'-Wframe-larger-than=1300',
'-fsingle-precision-constant',
@ -346,10 +344,7 @@ class chibios(Board):
'-Wno-error=float-equal',
'-Wno-error=undef',
'-Wno-error=cpp',
'-Wno-cast-align',
'-fno-exceptions',
'-fno-rtti',
'-fno-threadsafe-statics',
'-Wall',
'-Wextra',
'-Wno-sign-compare',
@ -380,9 +375,13 @@ class chibios(Board):
'-fno-builtin-puts',
'-mno-thumb-interwork',
'-mthumb',
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
'--specs=nano.specs',
'-specs=nosys.specs'
'-specs=nosys.specs',
'-DCHIBIOS_BOARD_NAME="%s"' % self.name,
]
env.CXXFLAGS += env.CFLAGS + [
'-fno-rtti',
'-fno-threadsafe-statics',
]
if sys.platform == 'cygwin':