crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

0004-compiler-Use-wasm-ld-for-wasm-targets.patch (944B)


      1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
      2 From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
      3 Date: Sat, 6 Nov 2021 22:42:06 +0100
      4 Subject: [PATCH] compiler: Use wasm-ld for wasm targets
      5 
      6 We don't ship rust-lld.
      7 ---
      8  compiler/rustc_target/src/spec/base/wasm.rs | 3 +--
      9  1 file changed, 1 insertion(+), 2 deletions(-)
     10 
     11 diff --git a/compiler/rustc_target/src/spec/base/wasm.rs b/compiler/rustc_target/src/spec/base/wasm.rs
     12 index 4b4d2aca26e4..b4918c8fdda2 100644
     13 --- a/compiler/rustc_target/src/spec/base/wasm.rs
     14 +++ b/compiler/rustc_target/src/spec/base/wasm.rs
     15 @@ -88,8 +88,7 @@ macro_rules! args {
     16          // arguments just yet
     17          limit_rdylib_exports: false,
     18  
     19 -        // we use the LLD shipped with the Rust toolchain by default
     20 -        linker: Some("rust-lld".into()),
     21 +        linker: Some("wasm-ld".into()),
     22          linker_flavor: LinkerFlavor::WasmLld(Cc::No),
     23  
     24          pre_link_args,