Explorar o código

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
Oliver Scherer %!s(int64=5) %!d(string=hai) anos
pai
achega
7a8161dab7
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/x86_64.rs

+ 7 - 0
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;