correct overeager slash conversion on windows (#1285)
This commit is contained in:
parent
d03f7ae79d
commit
77d4483fad
|
@ -335,7 +335,7 @@ def _convert_flags(compiler, flags):
|
||||||
list: The converted flags
|
list: The converted flags
|
||||||
"""
|
"""
|
||||||
if compiler == "msvc-cl":
|
if compiler == "msvc-cl":
|
||||||
return [flag.replace("/", "-") if flag.startswith("/") else flag for flag in flags]
|
return [("-" + flag.removeprefix("/")) if flag.startswith("/") else flag for flag in flags]
|
||||||
return flags
|
return flags
|
||||||
|
|
||||||
def _add_if_needed(arr, add_arr):
|
def _add_if_needed(arr, add_arr):
|
||||||
|
|
Loading…
Reference in New Issue