From 5d24f0de23aa596cd4c2a641e8331185361f8f75 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 6 May 2016 13:11:53 +1000 Subject: [PATCH] sim_vehicle: use waf --debug option to create debug builds --- Tools/autotest/sim_vehicle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index f608d25970..a15a6d12d9 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -392,6 +392,9 @@ def do_build_waf(vehicledir, opts, frame_options): waf_light = "./modules/waf/waf-light" cmd_configure = [waf_light, "configure", "--board", "sitl" ] + if opts.debug: + cmd_configure.append("--debug") + run_cmd_blocking("Configure waf", cmd_configure) p = subprocess.Popen(cmd_configure) pid, sts = os.waitpid(p.pid,0)