Merge pull request #4701 from gilles-peskine-arm/make_generated_files-non_english-3.0

psa_generate_test: tweak MSVC detection to work with non-English Visual Studio
This commit is contained in:
Ronald Cron 2021-07-23 14:05:08 +02:00 committed by GitHub
commit 3c62693c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,8 +135,7 @@ def get_c_expression_values(
stdout=subprocess.DEVNULL,
stderr=subprocess.PIPE,
universal_newlines=True)
cc_is_msvc = 'Microsoft (R) C/C++ Optimizing Compiler' in \
proc.communicate()[1]
cc_is_msvc = 'Microsoft (R) C/C++' in proc.communicate()[1]
cmd += ['-I' + dir for dir in include_path]
if cc_is_msvc: