Skip to content

Commit 7a8161d

Browse files
oli-obkalexcrichton
authored andcommitted
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
1 parent 9823b95 commit 7a8161d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/x86_64.rs

+7
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,10 @@ pub unsafe fn ___chkstk() {
7373
);
7474
intrinsics::unreachable();
7575
}
76+
77+
// HACK(https://github.com/rust-lang/rust/issues/62785): x86_64-unknown-uefi needs special LLVM
78+
// support unless we emit the _fltused
79+
#[no_mangle]
80+
#[used]
81+
#[cfg(target_os = "uefi")]
82+
static _fltused: i32 = 0;

0 commit comments

Comments
 (0)