summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-15 10:02:48 +0200
committerSimon Ser <contact@emersion.fr>2021-09-01 09:26:17 +0200
commite9a88a2e6c203b22ba499082f347e6bd8b9e7f20 (patch)
treea9bf51a7691bc8571a819f57ffcc8682e2749a19
parent9bc93d3ad2784587dc88b41d26c68b3c24d4caa2 (diff)
downloadwayland-protocols-e9a88a2e6c203b22ba499082f347e6bd8b9e7f20.tar.gz
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 <contact@emersion.fr>
-rw-r--r--tests/meson.build4
1 files changed, 3 insertions, 1 deletions
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