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

25 lines
936 B
Diff
Raw Normal View History

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-09-24 17:53:44 +00:00
index 9216d3e7b65f..75d038a42a69 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()),
2021-11-13 16:25:29 +00:00
lld_flavor: LldFlavor::Wasm,
linker_is_gnu: false,