aports/main/rust/system-uefi-ld.patch
omni 507c0e0b6d main/rust: upgrade to 1.91.0
- drop need-rpath.patch
- make it clear that it is our *rust* version, mainly for output from
  cargo --version
- move target-spec-json-schema.json to -doc subpackage, we do not want
  to introduce a /usr/etc here (rustc --print sysroot), there is also
  rustc --print target-spec-json-schema
- skip two bootstrap sanity checks - initially I just disabled these to
  see how far we would get, but it seems like we can build just fine
  without these (also tested with a few rust aports)
2025-11-07 19:46:39 +00:00

23 lines
1.0 KiB
Diff

--- a/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
+++ b/compiler/rustc_target/src/spec/targets/aarch64_unknown_uefi.rs
@@ -10,6 +10,7 @@ pub(crate) fn target() -> Target {
base.add_pre_link_args(LinkerFlavor::Msvc(Lld::No), &["/machine:arm64"]);
base.features = "+v8a".into();
+ base.linker = Some("lld".into());
Target {
llvm_target: "aarch64-unknown-windows".into(),
metadata: TargetMetadata {
diff --git a/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs b/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
index 0cf6a8794621..b7ed54eb8cdd 100644
--- a/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
+++ b/compiler/rustc_target/src/spec/targets/x86_64_unknown_uefi.rs
@@ -29,6 +29,7 @@ pub(crate) fn target() -> Target {
base.features = "-mmx,-sse,+soft-float".into();
base.rustc_abi = Some(RustcAbi::X86Softfloat);
+ base.linker = Some("lld".into());
Target {
llvm_target: "x86_64-unknown-windows".into(),
metadata: TargetMetadata {