On 2/24/2021 2:44 AM, Paolo Bonzini wrote:
On 23/02/21 20:34, Daniele Buono wrote:
This works, but setting this value to 1 for everybody seems a bit too
restrictive. While the gitlab ci runners don't have enough memory for
this, that's not necessarily true for every build platform, and linking
multiple targets in parallel with LTO can result in a big save in time,
so I'd prefer a customizable way.
How about adding a flag `--max-ld-procs` to configure to manually set
backend_max_links?
Another possibility is to invoke "meson configure build
-Dbackend_max_links=1" after configure.
I like this, I'll send a v2 soon where I replace this patch with one
just for linking.
Daniele