mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
[vcc]makes paths relative when possible fixes #22025
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user