RE: [PATCH] execve: argument list space enlargement

From: David Laight
Date: Fri Jan 05 2024 - 07:02:33 EST


From: alexs@xxxxxxxxxx
> Sent: 03 January 2024 13:07
>
> From: Alex Shi <alexsshi@xxxxxxxxxxx>
>
> Wechat using too long gcc parameters, then get a strace complain:
> execve(...) = -1 E2BIG (Argument list too long)
> Have to increase the parameter space for this, stack has enough
> space for this enlargement.

They should fix their build so that it doesn't explode.
It'll probably speed up the compiles as well since the
very long argv[] almost certainly comes from a lot of -I dir
options and they slow down the compile.

if they are -Dvar[=val] then '-include file' can be used instead.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)