Skip to content

Commit 3e15dc1

Browse files
committed
Merge branch 'master' into redox
2 parents daaa231 + 01d53df commit 3e15dc1

File tree

56 files changed

+1780
-420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1780
-420
lines changed

src/Cargo.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bootstrap/channel.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! `package_vers`, and otherwise indicating to the compiler what it should
1616
//! print out as part of its version information.
1717
18-
use std::fs::{self, File};
18+
use std::fs::File;
1919
use std::io::prelude::*;
2020
use std::process::Command;
2121

@@ -69,7 +69,7 @@ pub fn collect(build: &mut Build) {
6969

7070
// If we have a git directory, add in some various SHA information of what
7171
// commit this compiler was compiled from.
72-
if fs::metadata(build.src.join(".git")).is_ok() {
72+
if build.src.join(".git").is_dir() {
7373
let ver_date = output(Command::new("git").current_dir(&build.src)
7474
.arg("log").arg("-1")
7575
.arg("--date=short")

src/bootstrap/check.rs

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ fn markdown_test(build: &Build, compiler: &Compiler, markdown: &Path) {
299299
build.add_rust_test_threads(&mut cmd);
300300
cmd.arg("--test");
301301
cmd.arg(markdown);
302+
cmd.env("RUSTC_BOOTSTRAP", "1");
302303

303304
let mut test_args = build.flags.cmd.test_args().join(" ");
304305
if build.config.quiet_tests {

src/bootstrap/dist.rs

+19-8
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ pub fn tmpdir(build: &Build) -> PathBuf {
4848
/// Slurps up documentation from the `stage`'s `host`.
4949
pub fn docs(build: &Build, stage: u32, host: &str) {
5050
println!("Dist docs stage{} ({})", stage, host);
51+
if !build.config.docs {
52+
println!("\tskipping - docs disabled");
53+
return
54+
}
55+
5156
let name = format!("rust-docs-{}", package_vers(build));
5257
let image = tmpdir(build).join(format!("{}-{}-image", name, name));
5358
let _ = fs::remove_dir_all(&image);
@@ -260,6 +265,14 @@ pub fn debugger_scripts(build: &Build,
260265
pub fn std(build: &Build, compiler: &Compiler, target: &str) {
261266
println!("Dist std stage{} ({} -> {})", compiler.stage, compiler.host,
262267
target);
268+
269+
// The only true set of target libraries came from the build triple, so
270+
// let's reduce redundant work by only producing archives from that host.
271+
if compiler.host != build.config.build {
272+
println!("\tskipping, not a build host");
273+
return
274+
}
275+
263276
let name = format!("rust-std-{}", package_vers(build));
264277
let image = tmpdir(build).join(format!("{}-{}-image", name, target));
265278
let _ = fs::remove_dir_all(&image);
@@ -294,10 +307,15 @@ pub fn analysis(build: &Build, compiler: &Compiler, target: &str) {
294307
println!("Dist analysis");
295308

296309
if build.config.channel != "nightly" {
297-
println!("Skipping dist-analysis - not on nightly channel");
310+
println!("\tskipping - not on nightly channel");
298311
return;
299312
}
313+
if compiler.host != build.config.build {
314+
println!("\tskipping - not a build host");
315+
return
316+
}
300317
if compiler.stage != 2 {
318+
println!("\tskipping - not stage2");
301319
return
302320
}
303321

@@ -324,13 +342,6 @@ pub fn analysis(build: &Build, compiler: &Compiler, target: &str) {
324342
.arg("--legacy-manifest-dirs=rustlib,cargo");
325343
build.run(&mut cmd);
326344
t!(fs::remove_dir_all(&image));
327-
328-
// Create plain source tarball
329-
let mut cmd = Command::new("tar");
330-
cmd.arg("-czf").arg(sanitize_sh(&distdir(build).join(&format!("{}.tar.gz", name))))
331-
.arg("analysis")
332-
.current_dir(&src);
333-
build.run(&mut cmd);
334345
}
335346

336347
/// Creates the `rust-src` installer component and the plain source tarball

src/bootstrap/step.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ pub fn build_rules(build: &Build) -> Rules {
499499
.default(true)
500500
.dep(|s| s.name("default:doc"))
501501
.run(move |s| dist::docs(build, s.stage, s.target));
502-
rules.dist("dist-analysis", "src/libstd")
502+
rules.dist("dist-analysis", "analysis")
503503
.dep(|s| s.name("dist-std"))
504504
.default(true)
505505
.run(move |s| dist::analysis(build, &s.compiler(), s.target));

src/ci/docker/arm-android/Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ COPY install-ndk.sh install-sdk.sh accept-licenses.sh /android/
2525
RUN sh /android/install-ndk.sh
2626
RUN sh /android/install-sdk.sh
2727

28+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
29+
dpkg -i dumb-init_*.deb && \
30+
rm dumb-init_*.deb
31+
2832
COPY start-emulator.sh /android/
29-
ENTRYPOINT ["/android/start-emulator.sh"]
33+
34+
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/android/start-emulator.sh"]
3035

3136
ENV TARGETS=arm-linux-androideabi
3237
ENV TARGETS=$TARGETS,i686-linux-android

src/ci/docker/cross/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2323
gcc-powerpc64le-linux-gnu libc6-dev-ppc64el-cross \
2424
gcc-s390x-linux-gnu libc6-dev-s390x-cross
2525

26+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
27+
dpkg -i dumb-init_*.deb && \
28+
rm dumb-init_*.deb
29+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
30+
2631
ENV TARGETS=aarch64-unknown-linux-gnu
2732
ENV TARGETS=$TARGETS,arm-unknown-linux-gnueabi
2833
ENV TARGETS=$TARGETS,arm-unknown-linux-gnueabihf

src/ci/docker/i686-gnu-nopt/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
sudo \
1414
gdb
1515

16+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
17+
dpkg -i dumb-init_*.deb && \
18+
rm dumb-init_*.deb
19+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
20+
1621
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests
1722
ENV RUST_CHECK_TARGET check
1823
RUN mkdir /tmp/obj

src/ci/docker/i686-gnu/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
sudo \
1414
gdb
1515

16+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
17+
dpkg -i dumb-init_*.deb && \
18+
rm dumb-init_*.deb
19+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
20+
1621
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu
1722
ENV RUST_CHECK_TARGET check
1823
RUN mkdir /tmp/obj

src/ci/docker/x86_64-freebsd/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1818
COPY build-toolchain.sh /tmp/
1919
RUN sh /tmp/build-toolchain.sh
2020

21+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
22+
dpkg -i dumb-init_*.deb && \
23+
rm dumb-init_*.deb
24+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
25+
2126
ENV \
2227
AR_x86_64_unknown_freebsd=x86_64-unknown-freebsd10-ar \
2328
CC_x86_64_unknown_freebsd=x86_64-unknown-freebsd10-gcc

src/ci/docker/x86_64-gnu-cargotest/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
libssl-dev \
1414
sudo
1515

16+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
17+
dpkg -i dumb-init_*.deb && \
18+
rm dumb-init_*.deb
19+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
20+
1621
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu
1722
ENV RUST_CHECK_TARGET check-cargotest
1823
ENV NO_VENDOR 1

src/ci/docker/x86_64-gnu-debug/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
sudo \
1414
gdb
1515

16+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
17+
dpkg -i dumb-init_*.deb && \
18+
rm dumb-init_*.deb
19+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
20+
1621
ENV RUST_CONFIGURE_ARGS \
1722
--build=x86_64-unknown-linux-gnu \
1823
--enable-debug \

src/ci/docker/x86_64-gnu-llvm-3.7/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1616
libedit-dev \
1717
zlib1g-dev
1818

19+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
20+
dpkg -i dumb-init_*.deb && \
21+
rm dumb-init_*.deb
22+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
23+
1924
ENV RUST_CONFIGURE_ARGS \
2025
--build=x86_64-unknown-linux-gnu \
2126
--llvm-root=/usr/lib/llvm-3.7

src/ci/docker/x86_64-gnu-make/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
sudo \
1414
gdb
1515

16+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
17+
dpkg -i dumb-init_*.deb && \
18+
rm dumb-init_*.deb
19+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
20+
1621
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --disable-rustbuild
1722
ENV RUST_CHECK_TARGET check
1823
RUN mkdir /tmp/obj

src/ci/docker/x86_64-gnu-nopt/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
sudo \
1414
gdb
1515

16+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
17+
dpkg -i dumb-init_*.deb && \
18+
rm dumb-init_*.deb
19+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
20+
1621
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --disable-optimize-tests
1722
ENV RUST_CHECK_TARGET check
1823
RUN mkdir /tmp/obj

src/ci/docker/x86_64-gnu/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
sudo \
1414
gdb
1515

16+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
17+
dpkg -i dumb-init_*.deb && \
18+
rm dumb-init_*.deb
19+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
20+
1621
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu
1722
ENV RUST_CHECK_TARGET check
1823
RUN mkdir /tmp/obj

src/ci/docker/x86_64-musl/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ WORKDIR /build/
1818
COPY build-musl.sh /build/
1919
RUN sh /build/build-musl.sh && rm -rf /build
2020

21+
RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb && \
22+
dpkg -i dumb-init_*.deb && \
23+
rm dumb-init_*.deb
24+
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
25+
2126
ENV RUST_CONFIGURE_ARGS \
2227
--target=x86_64-unknown-linux-musl \
2328
--musl-root-x86_64=/musl-x86_64

src/doc/rust.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
font-family: 'Source Code Pro';
4545
font-style: normal;
4646
font-weight: 400;
47-
src: local('Source Code Pro'), url("SourceCodePro-Regular.woff") format('woff');
47+
/* Avoid using locally installed font because bad versions are in circulation:
48+
* see https://github.com/rust-lang/rust/issues/24355 */
49+
src: url("SourceCodePro-Regular.woff") format('woff');
4850
}
4951

5052
*:not(body) {

0 commit comments

Comments
 (0)