From: Simon McVittie Date: Mon, 14 Aug 2023 19:32:03 +0000 (+0100) Subject: meson: Specify that build-machine compiler for C++ is not required X-Git-Tag: dbus-1.15.8~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d0ee109c38139c60250f214f8273a9fa2dcd92d;p=thirdparty%2Fdbus.git meson: Specify that build-machine compiler for C++ is not required When cross-compiling Windows binaries on (for example) Linux, we only need a Windows C++ compiler and not a Linux C++ compiler. Resolves: https://gitlab.freedesktop.org/dbus/dbus/-/issues/439 Signed-off-by: Simon McVittie --- diff --git a/meson.build b/meson.build index da3c0d20a..22a17ee71 100644 --- a/meson.build +++ b/meson.build @@ -93,7 +93,7 @@ platform_windows = host_os.contains('windows') if platform_windows # On Windows, we use C++ constructors to initialize global locks using_cpp = true - add_languages('cpp', required: true) + add_languages('cpp', required: true, native: false) cpp = meson.get_compiler('cpp') else using_cpp = false