meson: don't access 'cxx' object without checking cpp lang
PATCH 1/1 meson: don't access 'cxx' object without checking cpp lang
Signed-off-by Daniel P. Berrangé <[email protected]>
--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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() {
Signature · 1 line
2.53.0
Quoted 10 lines · Daniel P. Berrangé
Signed-off-by Daniel P. Berrangé <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meson.build +0
-0
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() {
Acked-by Paolo Bonzini <[email protected]>
Quoted 10 lines · Daniel P. Berrangé
Signed-off-by Daniel P. Berrangé <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meson.build +0
-0
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 Pierrick Bouvier <[email protected]>