diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2017-03-17 10:23:40 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2017-03-17 10:23:40 +1300 |
| commit | 1d93a6cce0119dfb1248643c7fb701ff1f8d4a50 (patch) | |
| tree | 6b0dea764ed83df070052e12875d6a0fdd00f4f0 /src/bootstrap/bin | |
| parent | dc63eff86c7ab75848c7cd6a5114111eb11683f9 (diff) | |
| download | rust-1d93a6cce0119dfb1248643c7fb701ff1f8d4a50.tar.gz rust-1d93a6cce0119dfb1248643c7fb701ff1f8d4a50.zip | |
Fix handlebars failure by using the `rustbuild` feature less indiscriminately.
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 5e6f3e9e6cc..82be4e3361e 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -79,7 +79,6 @@ fn main() { cmd.args(&args) .arg("--cfg") .arg(format!("stage{}", stage)) - .arg("--cfg").arg("rustbuild") .env(bootstrap::util::dylib_path_var(), env::join_paths(&dylib_path).unwrap()); @@ -95,6 +94,13 @@ 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") { |
