Skip to content

Commit 1b15ec6

Browse files
committed
Use a call probe on the x86_64-uefi target
Fixes #81196
1 parent 007080b commit 1b15ec6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_target/src/spec/uefi_msvc_base.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ pub fn opts() -> TargetOptions {
4343
exe_suffix: ".efi".to_string(),
4444
allows_weak_linkage: false,
4545
panic_strategy: PanicStrategy::Abort,
46-
stack_probes: StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) },
46+
// LLVM does not emit inline assembly because the LLVM target does not get considered as…
47+
// "Windows".
48+
stack_probes: StackProbeType::Call,
4749
singlethread: true,
4850
linker: Some("rust-lld".to_string()),
4951
..base

0 commit comments

Comments
 (0)