]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
scons: Pass MAXLINELENGTH to scons invocation
authorKhem Raj <raj.khem@gmail.com>
Mon, 30 Jan 2023 05:03:42 +0000 (21:03 -0800)
committerSteve Sakoman <steve@sakoman.com>
Fri, 10 Feb 2023 21:07:39 +0000 (11:07 -1000)
commitd361b7ddfb92e2b14e217377e02ca06cb936a54f
tree23d4b9110fd0d4619537b4a1fcd76b79e924b87e
parent8153db20ebf3e3d03b754868caec4eb6968b4420
scons: Pass MAXLINELENGTH to scons invocation

This helps in overcoming a problem when using scons with ccache enabled.
When commands get longer, then it resorts to using response files to do
the operations e.g. @/tmp/tmp96j6icra.lnk when this response file is
inboked by compiler it works ok, however, this does not when ccache is
used to invoke the complilation. We see errors e.g.

ccache @/tmp/tmppsyij_0v.lnk
ccache: error: execute_noreturn of @/tmp/tmppsyij_0v.lnk failed: No such file or directory

Using MAXLINELENGTH setting ensures that we can use ARG_MAX to extend
the length of commandline and hence avoid using response files. This
issue is also reported in mongodb [1]

[1] https://jira.mongodb.org/browse/SERVER-38389

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 29558f6218f4676b459f2c78f82d245339d51c8c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes-recipe/scons.bbclass