From d63e2def82f208f8c15c78db5f0f58cc14792972 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 15 Aug 2019 13:51:47 -0700 Subject: bootstrap: Remove usage of `RUSTC_TARGET_LINKER` Cargo has a native enviroment variable for this. --- src/bootstrap/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/bootstrap/lib.rs') diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 5d7581c8211..9203a558f64 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -1320,3 +1320,13 @@ impl Compiler { self.stage >= final_stage } } + +fn envify(s: &str) -> String { + s.chars() + .map(|c| match c { + '-' => '_', + c => c, + }) + .flat_map(|c| c.to_uppercase()) + .collect() +} -- cgit 1.4.1-3-g733a5