From b83cf3a4315054cf4c32858d5f20449c8729ddd8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Nov 2021 12:04:40 +1100 Subject: [PATCH] waf: ensure ENABLE_SCRIPTING is always defined --- Tools/ardupilotwaf/boards.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index b9d944e7fc..c93c3a731e 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -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', ]