meson: Pass native: false to add_languages()

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>
This commit is contained in:
Nirbheek Chauhan 2020-05-12 05:58:38 +05:30 committed by GStreamer Merge Bot
parent 7a7cd9de6c
commit b63dd628d2

View 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 ],