diff options
| author | XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com> | 2021-04-30 18:44:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-30 18:44:20 +0200 |
| commit | 15c8d31392b9fbab3b3368b67acc4bbe5983115a (patch) | |
| tree | c420ce6ad2480b3c8a3fab092c9989ef529af6bb | |
| parent | ddd4ce25535cf71203ba3700896131ce55fde795 (diff) | |
| download | rust-15c8d31392b9fbab3b3368b67acc4bbe5983115a.tar.gz rust-15c8d31392b9fbab3b3368b67acc4bbe5983115a.zip | |
No-op register_jit on Windows (#1170)
* No-op register_jit on Windows Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
| -rw-r--r-- | src/debuginfo/unwind.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |
