mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
No-op register_jit on Windows (#1170)
* No-op register_jit on Windows Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
parent
ddd4ce2553
commit
15c8d31392
@ -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) {
|
pub(crate) unsafe fn register_jit(self, jit_module: &cranelift_jit::JITModule) {
|
||||||
let mut eh_frame = EhFrame::from(super::emit::WriterRelocate::new(self.endian));
|
let mut eh_frame = EhFrame::from(super::emit::WriterRelocate::new(self.endian));
|
||||||
self.frame_table.write_eh_frame(&mut eh_frame).unwrap();
|
self.frame_table.write_eh_frame(&mut eh_frame).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user