From 6672577f6e8a7cd9230e0dce7ae852d89842403c Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Mon, 25 Oct 2021 18:11:36 +0100 Subject: [PATCH] waf: make sure APM_BUILD_DIRECTORY is defined for APM_BUILD_COPTER_OR_HELI and lua --- Tools/ardupilotwaf/ap_library.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/ardupilotwaf/ap_library.py b/Tools/ardupilotwaf/ap_library.py index c6aa0dba83..03aaa4e2ba 100644 --- a/Tools/ardupilotwaf/ap_library.py +++ b/Tools/ardupilotwaf/ap_library.py @@ -53,8 +53,8 @@ def _vehicle_index(vehicle): # note that AP_NavEKF3_core.h is needed for AP_NavEKF3_feature.h _vehicle_macros = ['SKETCHNAME', 'SKETCH', 'APM_BUILD_DIRECTORY', - 'APM_BUILD_TYPE', - 'AP_NavEKF3_core.h'] + 'APM_BUILD_TYPE', 'APM_BUILD_COPTER_OR_HELI', + 'AP_NavEKF3_core.h', 'lua_generated_bindings.h'] _macros_re = re.compile(r'\b(%s)\b' % '|'.join(_vehicle_macros)) def _remove_comments(s):