2023-01-11 20:16:39 +00:00
|
|
|
From 37cb177eb53145103ae72b67562884782dde01c3 Mon Sep 17 00:00:00 2001
|
2021-06-07 20:18:47 +00:00
|
|
|
From: Ivan Mironov <mironov.ivan@gmail.com>
|
|
|
|
Date: Sun, 8 Dec 2019 17:23:08 +0500
|
|
|
|
Subject: [PATCH] Use lld provided by system for wasm
|
|
|
|
|
|
|
|
---
|
2021-06-22 21:05:36 +00:00
|
|
|
compiler/rustc_target/src/spec/wasm_base.rs | 3 +--
|
2021-06-07 20:18:47 +00:00
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
2021-06-22 21:05:36 +00:00
|
|
|
diff --git a/compiler/rustc_target/src/spec/wasm_base.rs b/compiler/rustc_target/src/spec/wasm_base.rs
|
2023-01-11 20:16:39 +00:00
|
|
|
index 528a84a8b37c..353d742161d1 100644
|
2021-06-22 21:05:36 +00:00
|
|
|
--- a/compiler/rustc_target/src/spec/wasm_base.rs
|
|
|
|
+++ b/compiler/rustc_target/src/spec/wasm_base.rs
|
2023-01-11 20:16:39 +00:00
|
|
|
@@ -89,8 +89,7 @@ macro_rules! args {
|
2021-06-07 20:18:47 +00:00
|
|
|
// arguments just yet
|
|
|
|
limit_rdylib_exports: false,
|
|
|
|
|
|
|
|
- // we use the LLD shipped with the Rust toolchain by default
|
2022-06-03 19:20:39 +00:00
|
|
|
- linker: Some("rust-lld".into()),
|
|
|
|
+ linker: Some("lld".into()),
|
2023-01-11 20:16:39 +00:00
|
|
|
linker_flavor: LinkerFlavor::WasmLld(Cc::No),
|
2021-06-07 20:18:47 +00:00
|
|
|
|
2023-01-11 20:16:39 +00:00
|
|
|
pre_link_args,
|
2021-06-07 20:18:47 +00:00
|
|
|
--
|
2023-01-11 20:16:39 +00:00
|
|
|
2.38.1
|
2021-06-07 20:18:47 +00:00
|
|
|
|