diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-06-06 19:32:43 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-06-19 22:25:05 -0700 |
| commit | be7ebdd512e8b4de29c0e0cf5aabf486e988867b (patch) | |
| tree | bb4cfa3e4d8b47883518fc1fd6a34b613b63aae7 /src/bootstrap | |
| parent | 04145943a25c3b8c7e7d7fe8c2efb04f259c25fb (diff) | |
| download | rust-be7ebdd512e8b4de29c0e0cf5aabf486e988867b.tar.gz rust-be7ebdd512e8b4de29c0e0cf5aabf486e988867b.zip | |
Bump version and stage0 compiler
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 19 | ||||
| -rw-r--r-- | src/bootstrap/bootstrap.py | 1 | ||||
| -rw-r--r-- | src/bootstrap/channel.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/check.rs | 1 | ||||
| -rw-r--r-- | src/bootstrap/lib.rs | 23 |
5 files changed, 5 insertions, 41 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index d048645d4d5..12152fc4399 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -118,13 +118,6 @@ fn main() { cmd.arg("-Cprefer-dynamic"); } - // Pass the `rustbuild` feature flag to crates which rustbuild is - // building. See the comment in bootstrap/lib.rs where this env var is - // set for more details. - if env::var_os("RUSTBUILD_UNSTABLE").is_some() { - cmd.arg("--cfg").arg("rustbuild"); - } - // Help the libc crate compile by assisting it in finding the MUSL // native libraries. if let Some(s) = env::var_os("MUSL_ROOT") { @@ -218,11 +211,7 @@ fn main() { // do that we pass a weird flag to the compiler to get it to do // so. Note that this is definitely a hack, and we should likely // flesh out rpath support more fully in the future. - // - // FIXME: remove condition after next stage0 - if stage != "0" { - cmd.arg("-Z").arg("osx-rpath-install-name"); - } + cmd.arg("-Z").arg("osx-rpath-install-name"); Some("-Wl,-rpath,@loader_path/../lib") } else if !target.contains("windows") { Some("-Wl,-rpath,$ORIGIN/../lib") @@ -242,12 +231,8 @@ fn main() { // Force all crates compiled by this compiler to (a) be unstable and (b) // allow the `rustc_private` feature to link to other unstable crates // also in the sysroot. - // - // FIXME: remove condition after next stage0 if env::var_os("RUSTC_FORCE_UNSTABLE").is_some() { - if stage != "0" { - cmd.arg("-Z").arg("force-unstable-if-unmarked"); - } + cmd.arg("-Z").arg("force-unstable-if-unmarked"); } } diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 971064fe9fe..1d3b77916d6 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -385,6 +385,7 @@ class RustBuild(object): if self.clean and os.path.exists(build_dir): shutil.rmtree(build_dir) env = os.environ.copy() + env["RUSTC_BOOTSTRAP"] = '1' env["CARGO_TARGET_DIR"] = build_dir env["RUSTC"] = self.rustc() env["LD_LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \ diff --git a/src/bootstrap/channel.rs b/src/bootstrap/channel.rs index 1b9536fba35..4664b1f765e 100644 --- a/src/bootstrap/channel.rs +++ b/src/bootstrap/channel.rs @@ -23,7 +23,7 @@ use build_helper::output; use Build; // The version number -pub const CFG_RELEASE_NUM: &'static str = "1.19.0"; +pub const CFG_RELEASE_NUM: &'static str = "1.20.0"; // An optional number to put after the label, e.g. '.2' -> '-beta.2' // Be sure to make this starts with a dot to conform to semver pre-release diff --git a/src/bootstrap/check.rs b/src/bootstrap/check.rs index 0d3cc2e0b1b..068efe18cce 100644 --- a/src/bootstrap/check.rs +++ b/src/bootstrap/check.rs @@ -672,6 +672,7 @@ pub fn bootstrap(build: &Build) { cmd.arg("test") .current_dir(build.src.join("src/bootstrap")) .env("CARGO_TARGET_DIR", build.out.join("bootstrap")) + .env("RUSTC_BOOTSTRAP", "1") .env("RUSTC", &build.rustc); if build.flags.cmd.no_fail_fast() { cmd.arg("--no-fail-fast"); diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index e0e6583b935..ca8cc3212d7 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -429,29 +429,6 @@ impl Build { .env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler)); } - // There are two invariants we must maintain: - // * stable crates cannot depend on unstable crates (general Rust rule), - // * crates that end up in the sysroot must be unstable (rustbuild rule). - // - // In order to do enforce the latter, we pass the env var - // `RUSTBUILD_UNSTABLE` down the line for any crates which will end up - // in the sysroot. We read this in bootstrap/bin/rustc.rs and if it is - // set, then we pass the `rustbuild` feature to rustc when building the - // the crate. - // - // In turn, crates that can be used here should recognise the `rustbuild` - // feature and opt-in to `rustc_private`. - // - // We can't always pass `rustbuild` because crates which are outside of - // the compiler, libs, and tests are stable and we don't want to make - // their deps unstable (since this would break the first invariant - // above). - // - // FIXME: remove this after next stage0 - if mode != Mode::Tool && stage == 0 { - cargo.env("RUSTBUILD_UNSTABLE", "1"); - } - // Ignore incremental modes except for stage0, since we're // not guaranteeing correctness across builds if the compiler // is changing under your feet.` |
