mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: enable heap methods for everything but bootloader
This commit is contained in:
parent
a9ea7ca3dc
commit
10aa97f958
@ -52,7 +52,6 @@ class Board:
|
|||||||
|
|
||||||
env.DEFINES.update(
|
env.DEFINES.update(
|
||||||
ENABLE_SCRIPTING = 1,
|
ENABLE_SCRIPTING = 1,
|
||||||
ENABLE_HEAP = 1,
|
|
||||||
LUA_32BITS = 1,
|
LUA_32BITS = 1,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -152,6 +151,10 @@ class Board:
|
|||||||
if cfg.options.bootloader:
|
if cfg.options.bootloader:
|
||||||
# don't let bootloaders try and pull scripting in
|
# don't let bootloaders try and pull scripting in
|
||||||
cfg.options.disable_scripting = True
|
cfg.options.disable_scripting = True
|
||||||
|
else:
|
||||||
|
env.DEFINES.update(
|
||||||
|
ENABLE_HEAP = 1,
|
||||||
|
)
|
||||||
|
|
||||||
if cfg.options.enable_math_check_indexes:
|
if cfg.options.enable_math_check_indexes:
|
||||||
env.CXXFLAGS += ['-DMATH_CHECK_INDEXES']
|
env.CXXFLAGS += ['-DMATH_CHECK_INDEXES']
|
||||||
|
Loading…
Reference in New Issue
Block a user