Skip to content

Commit

Permalink
No-op register_jit on Windows (rust-lang#1170)
Browse files Browse the repository at this point in the history
* No-op register_jit on Windows

Co-authored-by: bjorn3 <[email protected]>
  • Loading branch information
XAMPPRocky and bjorn3 authored Apr 30, 2021
1 parent ddd4ce2 commit 15c8d31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/debuginfo/unwind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ impl UnwindContext {
}
}

#[cfg(feature = "jit")]
#[cfg(all(feature = "jit", windows))]
pub(crate) unsafe fn register_jit(self, _jit_module: &cranelift_jit::JITModule) {}

#[cfg(all(feature = "jit", not(windows)))]
pub(crate) unsafe fn register_jit(self, jit_module: &cranelift_jit::JITModule) {
let mut eh_frame = EhFrame::from(super::emit::WriterRelocate::new(self.endian));
self.frame_table.write_eh_frame(&mut eh_frame).unwrap();
Expand Down

0 comments on commit 15c8d31

Please sign in to comment.