mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Improve MSVC detection
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
committed by
Gilles Peskine
parent
9e84ec7711
commit
3bd51b0bb1
@ -128,7 +128,7 @@ def get_c_expression_values(
|
|||||||
)
|
)
|
||||||
c_file.close()
|
c_file.close()
|
||||||
cc = os.getenv('CC', 'cc')
|
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 = [cc]
|
||||||
cmd += ['-I' + dir for dir in include_path]
|
cmd += ['-I' + dir for dir in include_path]
|
||||||
# MSVC has deprecated using -o to specify the output file.
|
# MSVC has deprecated using -o to specify the output file.
|
||||||
|
Reference in New Issue
Block a user