From: Pierrick Bouvier Date: Tue, 30 Dec 2025 19:30:01 +0000 (-0800) Subject: meson: enable cpp (optionally) for plugins X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3b3bfbe3f20883e6d8c19c5f9f706f8e095bcfa;p=thirdparty%2Fqemu.git meson: enable cpp (optionally) for plugins Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Manos Pitsidianakis Link: https://lore.kernel.org/qemu-devel/20260124182921.531562-9-pierrick.bouvier@linaro.org Signed-off-by: Pierrick Bouvier --- diff --git a/meson.build b/meson.build index ad8550d9e9..149655058a 100644 --- a/meson.build +++ b/meson.build @@ -77,7 +77,8 @@ python = import('python').find_installation() cc = meson.get_compiler('c') all_languages = ['c'] -if host_os == 'windows' and add_languages('cpp', required: false, native: false) +enable_cpp = host_os == 'windows' or get_option('plugins') +if enable_cpp and add_languages('cpp', required: false, native: false) all_languages += ['cpp'] cxx = meson.get_compiler('cpp') endif