Closed
Bug 1340955
Opened 7 years ago
Closed 4 years ago
Consider supporting clcache
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: xidorn, Unassigned)
References
()
Details
There is a compiler cache for MSVC we should probably try and integrate into our build environment.
I tried it myself via setting CC and CXX to clcache, but it doesn't seem to work as expected. I guess our build system currently pretty much relies on using the original cl.exe, and probably even hardcoded that somewhere.
The first issue I met was that configure reports:
> Cannot determine the Visual C++ directory the compiler...
so I copied clcache directory into MSVC's bin directory. But latter, I found that clcache doesn't seem to be doing anything, since its statistics isn't updated at all, and in objdir/config.status, CXX is still cl.exe.
I have no idea what needs to be done for it to work, so I give up and file a bug here.
Reporter | ||
Comment 1•7 years ago
|
||
RyanVM, do you think we should add this to MozillaBuild as part of our Windows build toolchain?
Flags: needinfo?(ryanvm)
Comment 2•7 years ago
|
||
I think we'd prefer to add sccache (https://blog.mozilla.org/ted/2016/11/21/sccache-mozillas-distributed-compiler-cache-now-written-in-rust/), which has the additional benefit of handling Rust code and being tested on our infra.
Reporter | ||
Comment 3•7 years ago
|
||
Oh, okay, I forgot that... Hope that support MSVC and can be included in our Windows toolchain.
Flags: needinfo?(ryanvm)
Comment 4•7 years ago
|
||
I have exactly zero time to figure out how to make that work. Happy to ship it somewhere in the PATH if others want to commit to doing something with it from there, but that's the only thing I can commit to.
Comment 5•7 years ago
|
||
I'm going to get release binaries of sccache enabled at some point and we'll be able to just fetch those. Currently I still build the binaries we use in automation on my local machines.
Updated•6 years ago
|
Product: Core → Firefox Build System
Comment 6•4 years ago
•
|
||
clcache seemingly stopped its development, maybe we should just close this? Solving https://github.com/mozilla/sccache/issues/623 might help Windows users instead. sccache already supports local cache by disabling dist configuration.
Comment 7•4 years ago
|
||
Closing as sccache already provides the local caching feature. Please reopen if I misunderstood anything.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•