mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 08:37:25 +00:00
Improve MSVC detection
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
parent
9e84ec7711
commit
3bd51b0bb1
@ -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…
x
Reference in New Issue
Block a user