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-03-21 23:40:26 +00:00
|
|
|
index 4b4d2aca26e4..b4918c8fdda2 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-03-21 23:40:26 +00:00
|
|
|
@@ -88,8 +88,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,
|