2021-11-13 16:25:29 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
|
|
|
Date: Sat, 6 Nov 2021 22:42:06 +0100
|
|
|
|
Subject: [PATCH] compiler: Use wasm-ld for wasm targets
|
|
|
|
|
|
|
|
We don't ship rust-lld.
|
|
|
|
---
|
|
|
|
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-12-16 19:42:50 +00:00
|
|
|
index 528a84a8b37c..f8af062bc2b1 100644
|
2021-11-13 16:25:29 +00:00
|
|
|
--- a/compiler/rustc_target/src/spec/wasm_base.rs
|
|
|
|
+++ b/compiler/rustc_target/src/spec/wasm_base.rs
|
2022-09-24 17:53:44 +00:00
|
|
|
@@ -89,8 +89,7 @@ macro_rules! args {
|
2021-11-13 16:25:29 +00:00
|
|
|
// arguments just yet
|
|
|
|
limit_rdylib_exports: false,
|
|
|
|
|
|
|
|
- // we use the LLD shipped with the Rust toolchain by default
|
2022-05-19 18:54:59 +00:00
|
|
|
- linker: Some("rust-lld".into()),
|
|
|
|
+ linker: Some("wasm-ld".into()),
|
2022-12-16 19:42:50 +00:00
|
|
|
linker_flavor: LinkerFlavor::WasmLld(Cc::No),
|
2021-11-13 16:25:29 +00:00
|
|
|
|
2022-12-16 19:42:50 +00:00
|
|
|
pre_link_args,
|