Files
patches/rust/rustc-1.93.1-uefi-use-lld-link.patch
2026-05-26 02:08:47 -05:00

14 lines
527 B
Diff

--- a/compiler/rustc_target/src/spec/base/uefi_msvc.rs
+++ b/compiler/rustc_target/src/spec/base/uefi_msvc.rs
@@ -45,7 +45,9 @@
// "Windows".
stack_probes: StackProbeType::Call,
singlethread: true,
- linker: Some("rust-lld".into()),
+ // Use the system LLD frontend name. Distro/toolchain builds that use an external LLVM
+ // often do not ship a `rust-lld` wrapper binary.
+ linker: Some("lld-link".into()),
entry_name: "efi_main".into(),
..base
}