From 8b95fac2145d4fda9039ad16d5599621d8d33470 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 Sep 2020 18:29:44 +1000 Subject: [PATCH] Tools: added --Werror option to autotest.py --- Tools/autotest/autotest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 9b4dfcffc5..a43926a162 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -359,6 +359,9 @@ def run_step(step): "extra_configure_args": opts.waf_configure_args, } + if opts.Werror: + build_opts['extra_configure_args'].append("--Werror") + vehicle_binary = None if step == 'build.Plane': vehicle_binary = 'bin/arduplane' @@ -719,6 +722,10 @@ if __name__ == "__main__": action="store_true", default=False, help="validate vehicle parameter files") + parser.add_option("--Werror", + action='store_true', + default=False, + help='configure with --Werror') group_build = optparse.OptionGroup(parser, "Build options") group_build.add_option("--no-configure",