* [PATCH] meson.build: Skip C++ detection unless we're targeting Windows
@ 2023-07-05 13:36 Thomas Huth
2023-07-05 14:23 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Huth @ 2023-07-05 13:36 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini
Cc: Daniel P. Berrangé, Philippe Mathieu-Daudé,
Marc-André Lureau
The only C++ code that we currently still have in the repository
is the code in qga/vss-win32/ - so we can skip the C++ detection
unless we are compiling binaries for Windows.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index a9ba0bfab3..5559b36859 100644
--- a/meson.build
+++ b/meson.build
@@ -20,7 +20,7 @@ config_host = keyval.load(meson.current_build_dir() / 'config-host.mak')
cc = meson.get_compiler('c')
all_languages = ['c']
-if add_languages('cpp', required: false, native: false)
+if targetos == 'windows' and add_languages('cpp', required: false, native: false)
all_languages += ['cpp']
cxx = meson.get_compiler('cpp')
endif
--
2.39.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] meson.build: Skip C++ detection unless we're targeting Windows
2023-07-05 13:36 [PATCH] meson.build: Skip C++ detection unless we're targeting Windows Thomas Huth
@ 2023-07-05 14:23 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-07-05 14:23 UTC (permalink / raw)
To: Thomas Huth, qemu-devel, Paolo Bonzini
Cc: Daniel P. Berrangé, Marc-André Lureau
On 5/7/23 15:36, Thomas Huth wrote:
> The only C++ code that we currently still have in the repository
> is the code in qga/vss-win32/ - so we can skip the C++ detection
> unless we are compiling binaries for Windows.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> meson.build | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-05 14:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 13:36 [PATCH] meson.build: Skip C++ detection unless we're targeting Windows Thomas Huth
2023-07-05 14:23 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).