From f6d0e14b7925f6eb0cedaf1df5fd83a3400d4683 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 30 Dec 2021 12:56:45 +0100 Subject: [PATCH] Fix dead code warning on windows --- src/debuginfo/emit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debuginfo/emit.rs b/src/debuginfo/emit.rs index 4120ba6e533..589910ede96 100644 --- a/src/debuginfo/emit.rs +++ b/src/debuginfo/emit.rs @@ -67,7 +67,7 @@ impl WriterRelocate { } /// Perform the collected relocations to be usable for JIT usage. - #[cfg(feature = "jit")] + #[cfg(all(feature = "jit", not(windows)))] pub(super) fn relocate_for_jit(mut self, jit_module: &cranelift_jit::JITModule) -> Vec { for reloc in self.relocs.drain(..) { match reloc.name {