]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
meson: Specify that build-machine compiler for C++ is not required
authorSimon McVittie <smcv@collabora.com>
Mon, 14 Aug 2023 19:32:03 +0000 (20:32 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 15 Aug 2023 13:55:12 +0000 (13:55 +0000)
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>
meson.build

index da3c0d20ad380ee879dff75d71f83c81765c2543..22a17ee71613237822f500d89211cf53cd28a5d7 100644 (file)
@@ -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