about summary refs log tree commit diff
path: root/src/bootstrap/tool.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-05-24 23:29:15 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2022-05-25 23:55:22 +0300
commit2984bf674f5f1839c19002f4fd032eacc98596c9 (patch)
tree4482219c0cc9ac5d8ab5c4704328c0a5019cbf2a /src/bootstrap/tool.rs
parent1b5e1215efa47cf4d78a945c7be1c04cda4f57d4 (diff)
downloadrust-2984bf674f5f1839c19002f4fd032eacc98596c9.tar.gz
rust-2984bf674f5f1839c19002f4fd032eacc98596c9.zip
Simplify implementation of `-Z gcc-ld`
- The logic is now unified for all targets (wasm targets should also be supported now)
- Additional "symlink" files like `ld64` are eliminated
- lld-wrapper is used for propagating the correct lld flavor
- Cleanup "unwrap or exit" logic in lld-wrapper
Diffstat (limited to 'src/bootstrap/tool.rs')
-rw-r--r--src/bootstrap/tool.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs
index 3b30e6de12a..2f4d07d77a5 100644
--- a/src/bootstrap/tool.rs
+++ b/src/bootstrap/tool.rs
@@ -656,7 +656,6 @@ impl Step for Cargo {
 pub struct LldWrapper {
     pub compiler: Compiler,
     pub target: TargetSelection,
-    pub flavor_feature: &'static str,
 }
 
 impl Step for LldWrapper {
@@ -676,7 +675,7 @@ impl Step for LldWrapper {
                 path: "src/tools/lld-wrapper",
                 is_optional_tool: false,
                 source_type: SourceType::InTree,
-                extra_features: vec![self.flavor_feature.to_owned()],
+                extra_features: Vec::new(),
             })
             .expect("expected to build -- essential tool");