From b7e3071ba354d5368931c932b59b1decb79f39f9 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Mon, 7 Mar 2016 19:12:41 -0300 Subject: [PATCH] waf: gtest: disable for PX4 boards Google Test code uses functions signatures not implemented by the current toolchain for PX4. --- Tools/ardupilotwaf/gtest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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: