Skip to content

Commit

Permalink
std: do not use dispatch semaphore under miri (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
joboet committed Oct 8, 2022
1 parent b4c8a7b commit c320ab9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions library/std/src/sys/unix/thread_parker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
)))]

cfg_if::cfg_if! {
if #[cfg(any(
target_os = "macos",
target_os = "ios",
target_os = "watchos",
target_os = "tvos",
if #[cfg(all(
any(
target_os = "macos",
target_os = "ios",
target_os = "watchos",
target_os = "tvos",
),
not(miri),
))] {
mod darwin;
pub use darwin::Parker;
Expand Down

0 comments on commit c320ab9

Please sign in to comment.