waf: don't build ChibiOS with debug by default
this makes builds (and rebuilds with ccache) faster
This commit is contained in:
parent
0c353d2af0
commit
835484429d
@ -327,7 +327,6 @@ class chibios(Board):
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-trigraphs',
|
||||
'-Os',
|
||||
'-g',
|
||||
'-fno-strict-aliasing',
|
||||
'-fomit-frame-pointer',
|
||||
'-falign-functions=16',
|
||||
@ -355,7 +354,6 @@ class chibios(Board):
|
||||
env.LINKFLAGS = [
|
||||
'-mcpu=cortex-m4',
|
||||
'-Os',
|
||||
'-g',
|
||||
'-fomit-frame-pointer',
|
||||
'-falign-functions=16',
|
||||
'-ffunction-sections',
|
||||
@ -380,6 +378,14 @@ class chibios(Board):
|
||||
'-Wl,--gc-sections,--no-warn-mismatch,--library-path=/ld,--script=ldscript.ld,--defsym=__process_stack_size__=0x400,--defsym=__main_stack_size__=0x400',
|
||||
]
|
||||
|
||||
if cfg.env.DEBUG:
|
||||
env.CFLAGS += [
|
||||
'-g',
|
||||
]
|
||||
env.LINKFLAGS += [
|
||||
'-g',
|
||||
]
|
||||
|
||||
env.LIB += ['gcc', 'm']
|
||||
|
||||
env.GIT_SUBMODULES += [
|
||||
|
Loading…
Reference in New Issue
Block a user