mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: gtest: disable for PX4 boards
Google Test code uses functions signatures not implemented by the current toolchain for PX4.
This commit is contained in:
parent
6753b54b52
commit
b7e3071ba3
@ -8,7 +8,19 @@ gtest is a Waf tool for test builds in Ardupilot
|
|||||||
from waflib import Utils
|
from waflib import Utils
|
||||||
from waflib.Configure import conf
|
from waflib.Configure import conf
|
||||||
|
|
||||||
|
import boards
|
||||||
|
|
||||||
def configure(cfg):
|
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
|
cfg.env.HAS_GTEST = False
|
||||||
|
|
||||||
if cfg.env.STATIC_LINKING:
|
if cfg.env.STATIC_LINKING:
|
||||||
|
Loading…
Reference in New Issue
Block a user