From fb06503307037aaf66aa2ab54ecbb8ebd27479d8 Mon Sep 17 00:00:00 2001 From: Feiyun Wang Date: Sun, 2 Apr 2023 23:45:48 +0800 Subject: [PATCH] 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. --- tools/my_spawn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/my_spawn.py b/tools/my_spawn.py index 95b87fa8..13ca0a69 100644 --- a/tools/my_spawn.py +++ b/tools/my_spawn.py @@ -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)