2021-11-13 16:25:29 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2023-07-16 14:54:25 +00:00
|
|
|
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
|
2021-11-13 16:25:29 +00:00
|
|
|
Date: Sat, 6 Nov 2021 22:42:06 +0100
|
|
|
|
Subject: [PATCH] compiler: Use wasm-ld for wasm targets
|
|
|
|
|
|
|
|
We don't ship rust-lld.
|
|
|
|
---
|
2024-01-03 02:00:18 +00:00
|
|
|
compiler/rustc_target/src/spec/base/wasm.rs | 3 +--
|
2021-11-13 16:25:29 +00:00
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
2024-01-03 02:00:18 +00:00
|
|
|
diff --git a/compiler/rustc_target/src/spec/base/wasm.rs b/compiler/rustc_target/src/spec/base/wasm.rs
|
2024-06-16 16:08:52 +00:00
|
|
|
index f237391016e7..a333bb529627 100644
|
2024-01-03 02:00:18 +00:00
|
|
|
--- a/compiler/rustc_target/src/spec/base/wasm.rs
|
|
|
|
+++ b/compiler/rustc_target/src/spec/base/wasm.rs
|
2024-06-16 16:08:52 +00:00
|
|
|
@@ -85,8 +85,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,
|