meson: Pass native: false to add_languages()
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 12 May 2020 00:28:38 +0000 (05:58 +0530)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 13 May 2020 08:19:10 +0000 (08:19 +0000)
This is needed for cross-compiling without a build machine compiler
available. The option was added in 0.54, but we only need this in
Cerbero and it doesn't affect older versions so it should be ok.
Will just cause a spurious warning.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/477>

tests/check/meson.build

index b47325b..d76410b 100644 (file)
@@ -113,7 +113,7 @@ core_tests = [
 ]
 
 # Make sure our headers are C++ clean
-if add_languages('cpp', required : false)
+if add_languages('cpp', native: false, required: false)
   core_tests += [
     [ 'gst/gstcpp.cc', not gst_registry ],
     [ 'libs/gstlibscpp.cc', false ],