sbcl 2.1.11 rebuild
[arch-packages.git] / rust / repos / extra-x86_64 / 0003-compiler-Use-wasm-ld-for-wasm-targets.patch
blob7c433fa0515665dab51d0a02e19db92b457f4325
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
3 Date: Sat, 6 Nov 2021 22:42:06 +0100
4 Subject: [PATCH] compiler: Use wasm-ld for wasm targets
6 We don't ship rust-lld.
7 ---
8 compiler/rustc_target/src/spec/wasm_base.rs | 3 +--
9 1 file changed, 1 insertion(+), 2 deletions(-)
11 diff --git a/compiler/rustc_target/src/spec/wasm_base.rs b/compiler/rustc_target/src/spec/wasm_base.rs
12 index 4c954a1e567c..f1d5fbf83748 100644
13 --- a/compiler/rustc_target/src/spec/wasm_base.rs
14 +++ b/compiler/rustc_target/src/spec/wasm_base.rs
15 @@ -99,8 +99,7 @@ pub fn options() -> TargetOptions {
16 // arguments just yet
17 limit_rdylib_exports: false,
19 - // we use the LLD shipped with the Rust toolchain by default
20 - linker: Some("rust-lld".to_owned()),
21 + linker: Some("wasm-ld".to_owned()),
22 lld_flavor: LldFlavor::Wasm,
23 linker_is_gnu: false,