Improve MSVC detection
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
parent
9e84ec7711
commit
3bd51b0bb1
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ def get_c_expression_values(
|
|||
)
|
||||
c_file.close()
|
||||
cc = os.getenv('CC', 'cc')
|
||||
cc_is_msvc = ('\\' + cc).lower().endswith('\\cl.exe')
|
||||
cc_is_msvc = os.path.split(cc)[1].lower() in ('cl', 'cl.exe')
|
||||
cmd = [cc]
|
||||
cmd += ['-I' + dir for dir in include_path]
|
||||
# MSVC has deprecated using -o to specify the output file.
|
||||
|
|
Loading…
Reference in a new issue