Skip to content

Commit 5f118b9

Browse files
travis: Gate on some minimal support for incremental compilation.
This commit adds a travis job that builds a stage2 compiler in incremental mode (but with empty incremental compilation cache). Building incrementally with an empty cache makes sure that the compiler doesn't crash in dependency tracking during bootstrapping.
1 parent c8af93f commit 5f118b9

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ matrix:
3434
- env: IMAGE=x86_64-gnu-llvm-3.7 ALLOW_PR=1 RUST_BACKTRACE=1
3535
- env: IMAGE=x86_64-musl DEPLOY=1
3636
- env: IMAGE=x86_64-gnu-distcheck
37+
- env: IMAGE=x86_64-gnu-incremental
3738

3839
# OSX builders
3940
- env: >
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
g++ \
5+
make \
6+
file \
7+
curl \
8+
ca-certificates \
9+
python2.7 \
10+
git \
11+
cmake \
12+
sudo \
13+
gdb \
14+
xz-utils
15+
16+
ENV SCCACHE_DIGEST=7237e38e029342fa27b7ac25412cb9d52554008b12389727320bd533fd7f05b6a96d55485f305caf95e5c8f5f97c3313e10012ccad3e752aba2518f3522ba783
17+
RUN curl -L https://api.pub.build.mozilla.org/tooltool/sha512/$SCCACHE_DIGEST | \
18+
tar xJf - -C /usr/local/bin --strip-components=1
19+
20+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
21+
dpkg -i dumb-init_*.deb && \
22+
rm dumb-init_*.deb
23+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
24+
25+
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu
26+
ENV RUSTFLAGS -Zincremental=/tmp/rust-incr-cache
27+
ENV RUST_CHECK_TARGET check

0 commit comments

Comments
 (0)