Skip to content

Commit

Permalink
Use a call probe on the x86_64-uefi target
Browse files Browse the repository at this point in the history
Fixes #81196
  • Loading branch information
nagisa committed Jan 19, 2021
1 parent 007080b commit 1b15ec6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/rustc_target/src/spec/uefi_msvc_base.rs
Expand Up @@ -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
Expand Down

0 comments on commit 1b15ec6

Please sign in to comment.