fixes #22025 vcc fails with The filename or extension is too long. when linking (#22026)

[vcc]makes paths relative when possible fixes #22025
This commit is contained in:
Juan M Gómez
2023-06-06 20:32:16 +01:00
committed by GitHub
parent 134b1890d5
commit 80fc749835

View File

@@ -211,6 +211,11 @@ when isMainModule:
if verboseArg:
vccOptions.incl poEchoCmd
let currentDir = getCurrentDir()
for arg in clArgs.mitems:
if fileExists(arg):
arg = relativePath(arg, currentDir)
# Default to the cl.exe command if no secondary command was specified
if commandArg.len < 1:
commandArg = "cl.exe"