Skip to content

Commit

Permalink
Emit _fltused on uefi targets as a short-term workaround (#317)
Browse files Browse the repository at this point in the history
* Emit `_fltused` on `uefi` targets as a short-term workaround

* Remove stray docker container
  • Loading branch information
oli-obk authored and alexcrichton committed Nov 7, 2019
1 parent 9823b95 commit 7a8161d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 7a8161d

Please sign in to comment.