diff options
author | Juan M Gómez <info@jmgomez.me> | 2023-06-06 20:32:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 21:32:16 +0200 |
commit | 80fc749835509d4bdd23d957ce8b2ddf028596dd (patch) | |
tree | 883f4badee6617e00cec6a1ab272e8b815eca804 | |
parent | 134b1890d549242169d3c5994685198d0a0bb838 (diff) | |
download | Nim-80fc749835509d4bdd23d957ce8b2ddf028596dd.tar.gz |
fixes #22025 vcc fails with The filename or extension is too long. when linking (#22026)
[vcc]makes paths relative when possible fixes #22025
-rw-r--r-- | tools/vccexe/vccexe.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/vccexe/vccexe.nim b/tools/vccexe/vccexe.nim index d548666b9..2a43f7422 100644 --- a/tools/vccexe/vccexe.nim +++ b/tools/vccexe/vccexe.nim @@ -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" |