summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJuan M Gómez <info@jmgomez.me>2023-06-06 20:32:16 +0100
committerGitHub <noreply@github.com>2023-06-06 21:32:16 +0200
commit80fc749835509d4bdd23d957ce8b2ddf028596dd (patch)
tree883f4badee6617e00cec6a1ab272e8b815eca804
parent134b1890d549242169d3c5994685198d0a0bb838 (diff)
downloadNim-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.nim5
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"
1:11 +0200 first implementation of docgen2' href='/ahoang/Nim/commit/compiler/docgen2.nim?h=devel&id=01ab5948aab5f8a9533392f2d2dc5ca98e5e1458'>01ab5948a ^
9eb909baf ^
01ab5948a ^
869a5aa90 ^
f8fe86fcd ^
9eb909baf ^


3d4084208 ^

2f43fdb83 ^
73c6efdf6 ^
01ab5948a ^
46efaf294 ^
9eb909baf ^


46efaf294 ^
9eb909baf ^
813828f69 ^
813828f69 ^
d68181246 ^
01ab5948a ^



813828f69 ^




9e6fb3f69 ^
01ab5948a ^


36e25a684 ^
01ab5948a ^



091c1b307 ^
813828f69 ^

01ab5948a ^
d68181246 ^
73c6efdf6 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68