summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2023-08-14 20:32:03 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2023-08-15 13:55:12 +0000
commit3d0ee109c38139c60250f214f8273a9fa2dcd92d (patch)
treec7d9ca98ff15d46211cfe9387eebbec909071f72
parent3365c95c202e3c3cfa78aa3abff34b21cdcc6e0f (diff)
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 <smcv@collabora.com>
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index da3c0d20..22a17ee7 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