Pablo Greco 2fb6d1
From 3582a262d27fd5a2f8705bad6018241eaca8aadd Mon Sep 17 00:00:00 2001
Pablo Greco 2fb6d1
From: Ivan Mironov <mironov.ivan@gmail.com>
Pablo Greco 2fb6d1
Date: Sun, 8 Dec 2019 17:23:08 +0500
Pablo Greco 2fb6d1
Subject: [PATCH] Use lld provided by system for wasm
Pablo Greco 2fb6d1
Pablo Greco 2fb6d1
---
Pablo Greco 2fb6d1
 compiler/rustc_target/src/spec/wasm_base.rs | 3 +--
Pablo Greco 2fb6d1
 1 file changed, 1 insertion(+), 2 deletions(-)
Pablo Greco 2fb6d1
Pablo Greco 2fb6d1
diff --git a/compiler/rustc_target/src/spec/wasm_base.rs b/compiler/rustc_target/src/spec/wasm_base.rs
Pablo Greco 2fb6d1
index b208eb92f8ff..94a701a11c8b 100644
Pablo Greco 2fb6d1
--- a/compiler/rustc_target/src/spec/wasm_base.rs
Pablo Greco 2fb6d1
+++ b/compiler/rustc_target/src/spec/wasm_base.rs
Pablo Greco 2fb6d1
@@ -98,8 +98,7 @@ pub fn options() -> TargetOptions {
Pablo Greco 2fb6d1
         // arguments just yet
Pablo Greco 2fb6d1
         limit_rdylib_exports: false,
Pablo Greco 2fb6d1
 
Pablo Greco 2fb6d1
-        // we use the LLD shipped with the Rust toolchain by default
Pablo Greco 2fb6d1
-        linker: Some("rust-lld".to_owned()),
Pablo Greco 2fb6d1
+        linker: Some("lld".to_owned()),
Pablo Greco 2fb6d1
         lld_flavor: LldFlavor::Wasm,
Pablo Greco 2fb6d1
 
Pablo Greco 2fb6d1
         // No need for indirection here, simd types can always be passed by
Pablo Greco 2fb6d1
-- 
Pablo Greco 2fb6d1
2.31.1
Pablo Greco 2fb6d1