Skip to content

Commit 15c8d31

Browse files
XAMPPRockybjorn3
andauthored
No-op register_jit on Windows (rust-lang#1170)
* No-op register_jit on Windows Co-authored-by: bjorn3 <[email protected]>
1 parent ddd4ce2 commit 15c8d31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/debuginfo/unwind.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ impl UnwindContext {
7171
}
7272
}
7373

74-
#[cfg(feature = "jit")]
74+
#[cfg(all(feature = "jit", windows))]
75+
pub(crate) unsafe fn register_jit(self, _jit_module: &cranelift_jit::JITModule) {}
76+
77+
#[cfg(all(feature = "jit", not(windows)))]
7578
pub(crate) unsafe fn register_jit(self, jit_module: &cranelift_jit::JITModule) {
7679
let mut eh_frame = EhFrame::from(super::emit::WriterRelocate::new(self.endian));
7780
self.frame_table.write_eh_frame(&mut eh_frame).unwrap();

0 commit comments

Comments
 (0)