]> git.ipfire.org Git - thirdparty/gcc.git/commit
libiberty: On Windows, pass a >32k cmdline through a response file.
authorCostas Argyris <costas.argyris@gmail.com>
Mon, 22 May 2023 12:55:56 +0000 (13:55 +0100)
committerJonathan Yong <10walls@gmail.com>
Mon, 5 Jun 2023 08:11:39 +0000 (08:11 +0000)
commit180ebb8a24d24fc5b105f2257d6216f6dfde62df
tree4243ddf11326d212cd71d6daf5a54bf4d2cad418
parentafd87299cefd021daf0158d5b6276c37013996b9
libiberty: On Windows, pass a >32k cmdline through a response file.

pex-win32.c (win32_spawn): If the command line for CreateProcess
exceeds the 32k Windows limit, try to store it in a temporary
response file and call CreateProcess with @file instead (PR71850).

Signed-off-by: Costas Argyris <costas.argyris@gmail.com>
Signed-off-by: Jonathan Yong <10walls@gmail.com>
libiberty/ChangeLog:

* pex-win32.c (win32_spawn): Check command line length
and generate a response file if necessary.
(spawn_script): Adjust parameters.
(pex_win32_exec_child): Ditto.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
libiberty/pex-win32.c