Commit 2fbd552
committed
ci(session-e2e): wrap zig in single-binary cgo launchers for Windows
The Windows link failed with 'fork/exec zig.exe: The filename or
extension is too long' (Win error 206). The cgo build links ~560 object
files whose paths overflow Windows' command-line limit. Go writes link
args to a @response file when they're too long, but only after probing
that the linker accepts @file -- and that probe runs only argv[0] of
$CC. With CC="zig cc -target ...", argv[0] is bare 'zig' (no 'cc'
subcommand), so the probe fails, Go skips the response file, and the
argv overflows.
Build zcc.exe/zxx.exe launchers that forward to 'zig cc'/'zig c++' so
$CC is a single executable, the probe passes, and Go uses a response
file.1 parent ade2937 commit 2fbd552
1 file changed
Lines changed: 48 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 71 | | |
79 | 72 | | |
80 | 73 | | |
81 | 74 | | |
82 | 75 | | |
83 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
84 | 125 | | |
85 | 126 | | |
86 | 127 | | |
| |||
0 commit comments