]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #38359 - alexcrichton:sccache, r=brson
authorbors <bors@rust-lang.org>
Fri, 16 Dec 2016 07:26:41 +0000 (07:26 +0000)
committerbors <bors@rust-lang.org>
Fri, 16 Dec 2016 07:26:41 +0000 (07:26 +0000)
rustbuild: Add sccache support

This commit adds support for sccache, a ccache-like compiler which works on MSVC
and stores results into an S3 bucket. This also switches over all Travis and
AppVeyor automation to using sccache to ensure a shared and unified cache over
time which can be shared across builders.

The support for sccache manifests as a new `--enable-sccache` option which
instructs us to configure LLVM differently to use a 'sccache' binary instead of
a 'ccache' binary. All docker images for Travis builds are updated to download
Mozilla's tooltool builds of sccache onto various containers and systems.
Additionally a new `rust-lang-ci-sccache` bucket is configured to hold all of
our ccache goodies.

---

Note that this does not currently change Windows [due to previously written up issues](https://github.com/rust-lang/rust/issues/38119#issuecomment-266631585). Despite that, however, I was curious to get timings for the builds on Travis to see what ranges we're working with. As a result, this is a WIP PR I'm using to gauge build times and such.


Trivial merge