waf: ensure ENABLE_SCRIPTING is always defined

This commit is contained in:
Peter Barker 2021-11-15 12:04:40 +11:00 committed by Peter Barker
parent d4a25d5999
commit b83cf3a431

View File

@ -48,6 +48,10 @@ class Board:
env.SRCROOT = srcpath('')
self.configure_env(cfg, env)
env.DEFINES.update(
ENABLE_SCRIPTING = 0,
)
# Setup scripting, had to defer this to allow checking board size
if ((not cfg.options.disable_scripting) and
(not cfg.env.DISABLE_SCRIPTING) and
@ -814,7 +818,6 @@ class chibios(Board):
'-Wno-error=double-promotion',
'-Wno-error=missing-declarations',
'-Wno-error=float-equal',
'-Wno-error=undef',
'-Wno-error=cpp',
]