build: specify native arg in add_languages()
authorSimon Ser <contact@emersion.fr>
Tue, 8 Mar 2022 12:57:23 +0000 (13:57 +0100)
committerSimon Ser <contact@emersion.fr>
Fri, 25 Mar 2022 09:14:08 +0000 (09:14 +0000)
Fixes the following warning:

    WARNING: add_languages is missing native:, assuming languages are wanted for
    both host and build.

Signed-off-by: Simon Ser <contact@emersion.fr>
tests/meson.build

index dd1aa85..ffb5136 100644 (file)
@@ -65,7 +65,7 @@ executable(
        dependencies: test_runner_dep
 )
 
-if add_languages('cpp')
+if add_languages('cpp', native: false)
        test(
                'cpp-compile-test',
                executable(