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

15 lines
586 B
Diff
Raw Normal View History

2023-10-06 14:29:02 +02:00
diff --git a/compiler/rustc_target/src/spec/wasm_base.rs b/compiler/rustc_target/src/spec/wasm_base.rs
index 341763aadbaf..dbb075affc18 100644
2023-12-28 23:19:39 +01:00
--- a/compiler/rustc_target/src/spec/base/wasm.rs
+++ b/compiler/rustc_target/src/spec/base/wasm.rs
2023-10-06 14:29:02 +02:00
@@ -89,8 +89,7 @@ macro_rules! args {
// arguments just yet
limit_rdylib_exports: false,
- // we use the LLD shipped with the Rust toolchain by default
- linker: Some("rust-lld".into()),
+ linker: Some("wasm-ld".into()),
linker_flavor: LinkerFlavor::WasmLld(Cc::No),
pre_link_args,