PKGBUILDs/extra/rust/0004-compiler-Use-wasm-ld-for-wasm-targets.patch

25 lines
944 B
Diff
Raw Normal View History

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.
---
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
2023-06-03 19:07:49 +00:00
index 341763aadbaf..dbb075affc18 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
2023-06-03 19:07:49 +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,