From 15c8d31392b9fbab3b3368b67acc4bbe5983115a Mon Sep 17 00:00:00 2001 From: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> Date: Fri, 30 Apr 2021 18:44:20 +0200 Subject: [PATCH] No-op register_jit on Windows (#1170) * No-op register_jit on Windows Co-authored-by: bjorn3 --- src/debuginfo/unwind.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/debuginfo/unwind.rs b/src/debuginfo/unwind.rs index ca7083cccb8..d1251e749f3 100644 --- a/src/debuginfo/unwind.rs +++ b/src/debuginfo/unwind.rs @@ -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();