2022-09-01 05:35:10 +00:00
|
|
|
From b521511174b1a08dddfac243604d649b71cc7386 Mon Sep 17 00:00:00 2001
|
2021-12-14 02:51:43 +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
|
|
|
|
|
|
|
|
---
|
|
|
|
compiler/rustc_target/src/spec/wasm_base.rs | 3 +--
|
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/compiler/rustc_target/src/spec/wasm_base.rs b/compiler/rustc_target/src/spec/wasm_base.rs
|
2022-09-01 05:35:10 +00:00
|
|
|
index de7b7374af31..eebbe616e9b6 100644
|
2021-12-14 02:51:43 +00:00
|
|
|
--- a/compiler/rustc_target/src/spec/wasm_base.rs
|
|
|
|
+++ b/compiler/rustc_target/src/spec/wasm_base.rs
|
|
|
|
@@ -99,8 +99,7 @@ pub fn options() -> TargetOptions {
|
|
|
|
// arguments just yet
|
|
|
|
limit_rdylib_exports: false,
|
|
|
|
|
|
|
|
- // we use the LLD shipped with the Rust toolchain by default
|
2022-09-01 05:35:10 +00:00
|
|
|
- linker: Some("rust-lld".into()),
|
|
|
|
+ linker: Some("lld".into()),
|
2021-12-14 02:51:43 +00:00
|
|
|
lld_flavor: LldFlavor::Wasm,
|
|
|
|
linker_is_gnu: false,
|
|
|
|
|
|
|
|
--
|
2022-09-01 05:35:10 +00:00
|
|
|
2.35.1
|
2021-12-14 02:51:43 +00:00
|
|
|
|