Use a call probe on the x86_64-uefi target

Fixes #81196
This commit is contained in:
Simonas Kazlauskas 2021-01-20 01:26:06 +02:00
parent 007080b607
commit 1b15ec656b
1 changed files with 3 additions and 1 deletions

View File

@ -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