Skip to content

Commit 9c05bab

Browse files
committed
ci: Actually bootstrap on i686 dist
Right now the `--build` option was accidentally omitted, so we're bootstraping from `x86_64` to `i686`. In addition to being slower (more compiles) that's not actually bootstrapping!
1 parent 02537fb commit 9c05bab

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/bootstrap/dist.rs

+7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ use channel;
3131
use util::{cp_r, libdir, is_dylib, cp_filtered, copy, replace_in_file};
3232
use builder::{Builder, RunConfig, ShouldRun, Step};
3333
use compile;
34+
use native;
3435
use tool::{self, Tool};
3536
use cache::{INTERNER, Interned};
3637
use time;
@@ -898,6 +899,12 @@ impl Step for PlainSourceTarball {
898899
.arg("--vers").arg(CARGO_VENDOR_VERSION)
899900
.arg("cargo-vendor")
900901
.env("RUSTC", &build.initial_rustc);
902+
if let Some(dir) = build.openssl_install_dir(build.config.build) {
903+
builder.ensure(native::Openssl {
904+
target: build.config.build,
905+
});
906+
cmd.env("OPENSSL_DIR", dir);
907+
}
901908
build.run(&mut cmd);
902909
}
903910

src/ci/docker/dist-i686-linux/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ ENV RUST_CONFIGURE_ARGS \
8686
--enable-extended \
8787
--enable-sanitizers \
8888
--enable-profiler \
89-
--enable-emscripten
89+
--enable-emscripten \
90+
--build=i686-unknown-linux-gnu
9091
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
9192

9293
# This is the only builder which will create source tarballs

0 commit comments

Comments
 (0)