From 1b15ec656b992fd991abad35b14c9e8ecb089132 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Wed, 20 Jan 2021 01:26:06 +0200 Subject: [PATCH] Use a call probe on the x86_64-uefi target Fixes #81196 --- compiler/rustc_target/src/spec/uefi_msvc_base.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/spec/uefi_msvc_base.rs b/compiler/rustc_target/src/spec/uefi_msvc_base.rs index c17b0fa07ab..b9ff16bd19f 100644 --- a/compiler/rustc_target/src/spec/uefi_msvc_base.rs +++ b/compiler/rustc_target/src/spec/uefi_msvc_base.rs @@ -43,7 +43,9 @@ pub fn opts() -> TargetOptions { exe_suffix: ".efi".to_string(), allows_weak_linkage: false, panic_strategy: PanicStrategy::Abort, - stack_probes: StackProbeType::InlineOrCall { min_llvm_version_for_inline: (11, 0, 1) }, + // LLVM does not emit inline assembly because the LLVM target does not get considered as… + // "Windows". + stack_probes: StackProbeType::Call, singlethread: true, linker: Some("rust-lld".to_string()), ..base