From bff186bef3532240249f4b637966a17db2379c96 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Thu, 7 Nov 2019 20:04:11 +0100 Subject: [PATCH] Emit `_fltused` on `uefi` targets as a short-term workaround (#317) * Emit `_fltused` on `uefi` targets as a short-term workaround * Remove stray docker container --- library/compiler-builtins/src/x86_64.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/compiler-builtins/src/x86_64.rs b/library/compiler-builtins/src/x86_64.rs index 2360ab8a6fa6..6940f8d9d291 100644 --- a/library/compiler-builtins/src/x86_64.rs +++ b/library/compiler-builtins/src/x86_64.rs @@ -73,3 +73,10 @@ pub unsafe fn ___chkstk() { ); intrinsics::unreachable(); } + +// HACK(https://github.com/rust-lang/rust/issues/62785): x86_64-unknown-uefi needs special LLVM +// support unless we emit the _fltused +#[no_mangle] +#[used] +#[cfg(target_os = "uefi")] +static _fltused: i32 = 0;