Skip to contentSkip to conversation

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

PATCH In review Daniel P. Berrangé 3 participants 3 messages Feb 10 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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

---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index 2d114e9018..9ad16d1998 100644
@@ -3194,7 +3194,7 @@ if host_os == 'windows'
 endif
 
 # Detect if ConvertStringToBSTR has been defined in _com_util namespace
-if host_os == 'windows'
+if host_os == 'windows' and 'cpp' in all_languages
   has_convert_string_to_bstr = cxx.links('''
     #include <comutil.h>
     int main() {
Signature · 1 line
2.53.0
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Daniel P. Berrangé
---
  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +0 -0
index 2d114e9018..9ad16d1998 100644

meson.build if host_os == 'windows' · line 3200

Quoted 8 lines
meson.build +1 -1
@@ -3194,7 +3194,7 @@ if host_os == 'windows'
  endif
 
  # Detect if ConvertStringToBSTR has been defined in _com_util namespace
-if host_os == 'windows'
+if host_os == 'windows' and 'cpp' in all_languages
    has_convert_string_to_bstr = cxx.links('''
      #include <comutil.h>
      int main() {
Reviewed-by on v1 1/1
#2 lore raw
In reply to Daniel P. Berrangé
Quoted 10 lines · Daniel P. Berrangé
---
  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +0 -0
index 2d114e9018..9ad16d1998 100644

meson.build if host_os == 'windows' · line 3200

Quoted 8 lines
meson.build +1 -1
@@ -3194,7 +3194,7 @@ if host_os == 'windows'
  endif
 
  # Detect if ConvertStringToBSTR has been defined in _com_util namespace
-if host_os == 'windows'
+if host_os == 'windows' and 'cpp' in all_languages
    has_convert_string_to_bstr = cxx.links('''
      #include <comutil.h>
      int main() {