diff --git a/Tools/ardupilotwaf/gtest.py b/Tools/ardupilotwaf/gtest.py index 8348723c8f..1125e37d0f 100644 --- a/Tools/ardupilotwaf/gtest.py +++ b/Tools/ardupilotwaf/gtest.py @@ -8,7 +8,19 @@ gtest is a Waf tool for test builds in Ardupilot from waflib import Utils from waflib.Configure import conf +import boards + def configure(cfg): + board = boards.get_board(cfg.env.BOARD) + if isinstance(board, boards.px4): + # toolchain is currently broken for gtest + cfg.msg( + 'Gtest', + 'PX4 boards currently don\'t support compiling gtest', + color='YELLOW', + ) + return + cfg.env.HAS_GTEST = False if cfg.env.STATIC_LINKING: