Make |mach bootstrap| offer to install sccache and help configure local office scccache if appropriate
Categories
(Firefox Build System :: Bootstrap Configuration, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: nalexander, Assigned: Logan)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Per conversation with :kmoir, I'm going through untriaged bugs in her components and marking the ones which look to be enhancements/tasks with the enhancement severity to get them out of the triage queue.
If this incorrect, please remove the tag.
Comment 2•7 years ago
|
||
I think this bug would be better served by splitting it into two parts:
- Install sccache in
mach bootstrap, which should be straightforward. We produce toolchain binaries for Linux/Windows and I've filed bug 1532329 for producing mac toolchain binaries. I would advise against usingcargo install sccachebecause sccache takes a while to build and some of the build requirements can be annoying. - Configure icecream--first, I think long-term we'd be better served by focusing on
sccache-dist, as we have a project to install IT-managedsccache-distschedulers in offices (bug 1524533) currently in progress. We're hoping to get everyone switched over fromicecreamtosccache-distin the near future. Second, it would be great if building in an office with a distributed sccache system available could automatically use it, which I think means that the build system would need to do this work at build time instead of at bootstrap time. There are probably some incremental steps we could make along the way here. I did open an sccache issue to give it a way to expose distributed compilation status towards this end.
Updated•7 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 months ago
|
||
mach bootstrap downloads sccache via auto_bootstrap() but never adds
--with-ccache=sccache to the generated mozconfig. This means the binary
sits unused in ~/.mozbuild/sccache/ and users must manually configure it.
Add a prompt during bootstrap (following the existing Mercurial/Git prompt
pattern) that offers to enable sccache for non-artifact builds. In
non-interactive mode, sccache is enabled automatically.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Updated•3 months ago
|
Description
•