LTO links lose the jobserver
Author: avikivityCreated Sep 14, 2026Updated Sep 19, 2026
01c35e6 says:
Almost nothing sccache spawns can use a jobserver. It reaches a child through
CARGO_MAKEFLAGS, and onlyrustcreads it: preprocessors, version probes and C/C++ compilers all ignore it. So stop sharing by default and let the callers that spawnrustcask, viaRunCommand::share_jobserver.
But clang/gcc can use the jobserver when running an LTO link. We should continue to pass the jobserver for those jobs.
Source: mozilla/sccache