diff --git a/README-WAF.md b/README-WAF.md index 391c283f59..1015de34e8 100644 --- a/README-WAF.md +++ b/README-WAF.md @@ -69,7 +69,7 @@ The programs in ardupilot are categorized into the following groups: - tools - examples: *programs that show how certain libraries are used or to simply test their operation* - - benchmarks + - benchmarks: *requires `--enable-benchmarks` during configurarion* - tests: *basically unit tests to ensure changes don't break the system's logic* diff --git a/wscript b/wscript index dd56ca9925..7b4c866480 100644 --- a/wscript +++ b/wscript @@ -64,6 +64,11 @@ def options(opt): help='Don\'t update git submodules. Useful for building ' + 'with submodules at specific revisions.') + g.add_option('--enable-benchmarks', + action='store_true', + default=False, + help='Enable benchmarks') + def configure(cfg): cfg.env.BOARD = cfg.options.board # use a different variant for each board @@ -79,7 +84,8 @@ def configure(cfg): cfg.load('waf_unit_test') cfg.load('mavgen') cfg.load('git_submodule') - cfg.load('gbenchmark') + if cfg.options.enable_benchmarks: + cfg.load('gbenchmark') cfg.load('gtest') cfg.load('static_linking')