https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281765
David Chisnall <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from David Chisnall <[email protected]> --- (In reply to Dimitry Andric from comment #2) > The reason for this was that lld was using way too many threads on many-core > machines: nowadays just creating "hw.ncpu" threads is no longer a good > default. I don't believe this is true (unless RAM is not properly scaled with core count). The problem is build systems that try to parallelise link jobs. Building LLVM with PARALLEL_LINK_JOBS=1, the upstream default remains the right one. Building FreeBSD, it is not. The fix for this in the bmake system is probably to wrap lld in a shell script that acquires a lock, invokes lld, and then releases the lock and exits with lld's exit code. -- You are receiving this mail because: You are the assignee for the bug.
