aports/main/rust/system-wasm-ld.patch
2025-12-14 11:09:55 +00:00

14 lines
563 B
Diff

--- a/compiler/rustc_target/src/spec/base/wasm.rs
+++ b/compiler/rustc_target/src/spec/base/wasm.rs
@@ -81,8 +81,8 @@ pub(crate) fn options() -> TargetOptions
// threaded model which will legalize atomics to normal operations.
singlethread: true,
- // we use the LLD shipped with the Rust toolchain by default
- linker: Some("rust-lld".into()),
+ // we use the LLD shipped with the system by default
+ linker: Some("wasm-ld".into()),
linker_flavor: LinkerFlavor::WasmLld(Cc::No),
pre_link_args,