mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: add support for --enable-stats
This commit is contained in:
parent
558631918c
commit
5eca0c61c4
@ -691,6 +691,13 @@ class chibios(Board):
|
||||
else:
|
||||
cfg.msg("Enabling malloc guard", "no")
|
||||
|
||||
if cfg.env.ENABLE_STATS:
|
||||
cfg.msg("Enabling ChibiOS thread statistics", "yes")
|
||||
env.CFLAGS += [ '-DHAL_ENABLE_THREAD_STATISTICS' ]
|
||||
env.CXXFLAGS += [ '-DHAL_ENABLE_THREAD_STATISTICS' ]
|
||||
else:
|
||||
cfg.msg("Enabling ChibiOS thread statistics", "no")
|
||||
|
||||
env.LIB += ['gcc', 'm']
|
||||
|
||||
env.GIT_SUBMODULES += [
|
||||
|
@ -294,6 +294,8 @@ def load_env_vars(env):
|
||||
env.CHIBIOS_BUILD_FLAGS += ' ENABLE_ASSERTS=yes'
|
||||
if env.ENABLE_MALLOC_GUARD:
|
||||
env.CHIBIOS_BUILD_FLAGS += ' ENABLE_MALLOC_GUARD=yes'
|
||||
if env.ENABLE_STATS:
|
||||
env.CHIBIOS_BUILD_FLAGS += ' ENABLE_STATS=yes'
|
||||
|
||||
|
||||
def setup_optimization(env):
|
||||
|
Loading…
Reference in New Issue
Block a user