Skip to content

Commit

Permalink
Fix #1059: Linking for mingw/x86_64 on MSYS2 fails, w/ ar execution s…
Browse files Browse the repository at this point in the history
…peed up

Command line length=8153 is OK, while 8159 is broken.
  • Loading branch information
feiyunw committed Apr 2, 2023
1 parent 189f56c commit fb06503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/my_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def mySpawn(sh, escape, cmd, args, 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)
Expand Down

0 comments on commit fb06503

Please sign in to comment.