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