Tweak MSVC detection to work with non-English Visual Studio
Fix #4699 Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
9a32d45819
commit
18d1e66fcf
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue