Skip to content

Commit

Permalink
Fix running MIRI tests on macOS (bytecodealliance#7938)
Browse files Browse the repository at this point in the history
* Fix running MIRI tests on macOS

Closes bytecodealliance#7936

* Fix unused function with miri
  • Loading branch information
alexcrichton authored Feb 14, 2024
1 parent e2d18da commit 6becad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions crates/runtime/src/sys/miri/traphandlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ pub type SignalHandler<'a> = dyn Fn() + Send + Sync + 'a;
pub fn platform_init(_macos_use_mach_ports: bool) {}

pub fn lazy_per_thread_init() {}

#[cfg(target_os = "macos")]
pub fn using_mach_ports() -> bool {
false
}
2 changes: 1 addition & 1 deletion crates/wasmtime/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl Config {
force_memory_init_memfd: false,
wmemcheck: false,
coredump_on_trap: false,
macos_use_mach_ports: true,
macos_use_mach_ports: !cfg!(miri),
};
#[cfg(any(feature = "cranelift", feature = "winch"))]
{
Expand Down

0 comments on commit 6becad8

Please sign in to comment.