@samitouri / QOSamiQemu / commits / d2f198027b

meson: don't access 'cxx' object without checking cpp lang

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Message-ID: <20260210173355.776365-1-berrange@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Daniel P. Berrangé committed Feb 10, 2026 at 17:33 UTC d2f198027baa68220a0b4224412007fa1c723eb1
1 file changed +1 -1
meson.build
+1 -1
@@ -3200,7 +3200,7 @@ if host_os == 'windows'
3200 endif
3201
3202 # Detect if ConvertStringToBSTR has been defined in _com_util namespace
3203 -if host_os == 'windows'
3203 +if host_os == 'windows' and 'cpp' in all_languages
3204 has_convert_string_to_bstr = cxx.links('''
3205 #include <comutil.h>
3206 int main() {