From 7bab5c1b283f718dd93ac4f7765035e75d53f905 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 3 Oct 2022 11:04:07 -0500 Subject: [PATCH] Consolidate module definition in `wasmtime-jit` (#5000) Minor thing I noticed from #4990 but I stylistically prefer to keep the `mod foo;` definitions canonicalized to one location to emphasize how multiple targets can use the same definition. --- crates/jit/src/unwind.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/jit/src/unwind.rs b/crates/jit/src/unwind.rs index 3de3074201..feb37c50f3 100644 --- a/crates/jit/src/unwind.rs +++ b/crates/jit/src/unwind.rs @@ -1,13 +1,10 @@ cfg_if::cfg_if! { - if #[cfg(all(windows, target_arch = "x86_64"))] { + if #[cfg(all(windows, any(target_arch = "x86_64", target_arch = "aarch64")))] { mod winx64; pub use self::winx64::*; } else if #[cfg(all(windows, target_arch = "x86"))] { mod winx32; pub use self::winx32::*; - } else if #[cfg(all(windows, target_arch = "aarch64"))] { - mod winx64; - pub use self::winx64::*; } else if #[cfg(unix)] { mod systemv; pub use self::systemv::*;