From e9a88a2e6c203b22ba499082f347e6bd8b9e7f20 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 15 Apr 2021 10:02:48 +0200 Subject: build: only require C/C++ compilers for host We use the no-op executables in test() directives, so these will be run on the host. This fixes the following warning: tests/meson.build:23: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build. Signed-off-by: Simon Ser --- tests/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/meson.build b/tests/meson.build index 03828c2..66337e7 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -20,7 +20,7 @@ endforeach # Check buildability -add_languages('c', 'cpp') +add_languages('c', 'cpp', native: true) replace = find_program('replace.py') foreach protocol_file : protocol_files @@ -109,6 +109,7 @@ foreach protocol_file : protocol_files '-Wall', '-Werror' ], install: false, + native: true, ) test(test_name, pedantic_test_executable) @@ -136,6 +137,7 @@ foreach protocol_file : protocol_files '-Werror', ], install: false, + native: true, ) test(test_name, cxx_test_executable) endif -- cgit v1.2.3