Skip to content

Commit

Permalink
Remove the leftover usage of posix-signals-on-macos
Browse files Browse the repository at this point in the history
This follows up bytecodealliance#6807 and removes the last remaining reference to
the removed `posix-signals-on-macos` feature flag.

Note that `lib.rs` now imports `mod unix` on MacOS. This change
is similar to the change in `traphandlers.rs` in bytecodealliance#6807. It is
needed for hosts that use signals instead of Mach ports on MacOs.
  • Loading branch information
ulan committed Oct 25, 2023
1 parent 309580b commit 454cf40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/wasmtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,7 @@ pub use anyhow::{Error, Result};
pub mod component;

cfg_if::cfg_if! {
if #[cfg(all(target_os = "macos", not(feature = "posix-signals-on-macos")))] {
// no extensions for macOS at this time
} else if #[cfg(unix)] {
if #[cfg(unix)] {
pub mod unix;
} else if #[cfg(windows)] {
pub mod windows;
Expand Down

0 comments on commit 454cf40

Please sign in to comment.