Turn off incremental for rust when distributing compilation with sccache-dist
Categories
(Firefox Build System :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: chmanchester, Unassigned)
References
(Blocks 1 open bug)
Details
There are some open questions about the interaction between sccache and incremental (https://github.com/mozilla/sccache/issues/236), but in the case we're distributing compilation we may end up better off distributing the full compile rather than disabling distribution and doing a local incremental compilation.
We'll want to test this out once we get a decently sized cluster stood up in one of the offices.
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
![]() |
||
Comment 1•6 years ago
|
||
Do we want to detect when RUSTC_WRAPPER
generally is using sccache
, and disable incremental compilation in that case, too? Or will that just naturally fall out of this work?
Reporter | ||
Comment 2•6 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #1)
Do we want to detect when
RUSTC_WRAPPER
generally is usingsccache
, and disable incremental compilation in that case, too? Or will that just naturally fall out of this work?
Not sure. According to https://github.com/mozilla/sccache/issues/399#issuecomment-479919479 path-based crates wont be cached in this case, but crates from crates.io will, which seems like a possibly valid configuration. More measurement is necessary.
Reporter | ||
Comment 3•5 years ago
|
||
This was done in bug 1576030 (for any use of sccache, covering out purposes here).
Description
•