diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index 17cea89adc..6116cb81b4 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -91,6 +91,11 @@ class Board: '-Werror=unused-result', ] + if cfg.options.enable_scripting: + env.DEFINES.update( + ENABLE_SCRIPTING = 'TRUE', + ) + if 'clang' in cfg.env.COMPILER_CC: env.CFLAGS += [ '-fcolor-diagnostics',