Fix #1059: Linking for mingw/x86_64 on MSYS2 fails, w/ ar execution speed up

Command line length=8153 is OK, while 8159 is broken.
Feiyun Wang 2023-04-02 23:45:48 +08:00
parent 189f56c34e
commit fb06503307
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def configure(env):
length = lead + 1 + len(args[begin])
for i in range(4, len(args)):
length += 1 + len(args[i])
if length >= 8 * 1024 - 32:
if length > 8153:
cmdline = " ".join(args[0:3] + args[begin:i])
# print("objs=", i - begin, ", length=", len(cmdline))
rv = mySubProcess(cmdline, env)