Skip to content

Commit

Permalink
Consolidate module definition in wasmtime-jit (#5000)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton authored Oct 3, 2022
1 parent 6bcc430 commit 7bab5c1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/jit/src/unwind.rs
Original file line number Diff line number Diff line change
@@ -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::*;
Expand Down

0 comments on commit 7bab5c1

Please sign in to comment.