Browse Source

waf: enable heap methods for everything but bootloader

zr-v5.1
bugobliterator 5 years ago committed by Andrew Tridgell
parent
commit
51fa1773b4
  1. 5
      Tools/ardupilotwaf/boards.py

5
Tools/ardupilotwaf/boards.py

@ -52,7 +52,6 @@ class Board: @@ -52,7 +52,6 @@ class Board:
env.DEFINES.update(
ENABLE_SCRIPTING = 1,
ENABLE_HEAP = 1,
LUA_32BITS = 1,
)
@ -158,6 +157,10 @@ class Board: @@ -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…
Cancel
Save