diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2019-08-15 13:44:22 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2019-09-23 09:34:44 -0700 |
| commit | 557e69b7caacefff1eb12f948e274debb2f4a5fd (patch) | |
| tree | 7d18f8398dc773e99a127b11e4a43ac6dc5e3596 /src/bootstrap/bin/rustc.rs | |
| parent | f6c87aba328f5d648786237da70fd227642b9c20 (diff) | |
| download | rust-557e69b7caacefff1eb12f948e274debb2f4a5fd.tar.gz rust-557e69b7caacefff1eb12f948e274debb2f4a5fd.zip | |
bootstrap: Delete handling of `RUSTC_METADATA_SUFFIX`
This is already handled by `__CARGO_DEFAULT_LIB_METADATA` so there's no need to doubly do it.
Diffstat (limited to 'src/bootstrap/bin/rustc.rs')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 84415baa3a1..e6102de1874 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -24,23 +24,7 @@ use std::str::FromStr; use std::time::Instant; fn main() { - let mut args = env::args_os().skip(1).collect::<Vec<_>>(); - - // Append metadata suffix for internal crates. See the corresponding entry - // in bootstrap/lib.rs for details. - if let Ok(s) = env::var("RUSTC_METADATA_SUFFIX") { - for i in 1..args.len() { - // Dirty code for borrowing issues - let mut new = None; - if let Some(current_as_str) = args[i].to_str() { - if (&*args[i - 1] == "-C" && current_as_str.starts_with("metadata")) || - current_as_str.starts_with("-Cmetadata") { - new = Some(format!("{}-{}", current_as_str, s)); - } - } - if let Some(new) = new { args[i] = new.into(); } - } - } + let args = env::args_os().skip(1).collect::<Vec<_>>(); // Detect whether or not we're a build script depending on whether --target // is passed (a bit janky...) |
