Skip to content

Commit c320ab9

Browse files
committed
std: do not use dispatch semaphore under miri (yet)
1 parent b4c8a7b commit c320ab9

File tree

1 file changed

+8
-5
lines changed
  • library/std/src/sys/unix/thread_parker

1 file changed

+8
-5
lines changed

Diff for: library/std/src/sys/unix/thread_parker/mod.rs

+8-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111
)))]
1212

1313
cfg_if::cfg_if! {
14-
if #[cfg(any(
15-
target_os = "macos",
16-
target_os = "ios",
17-
target_os = "watchos",
18-
target_os = "tvos",
14+
if #[cfg(all(
15+
any(
16+
target_os = "macos",
17+
target_os = "ios",
18+
target_os = "watchos",
19+
target_os = "tvos",
20+
),
21+
not(miri),
1922
))] {
2023
mod darwin;
2124
pub use darwin::Parker;

0 commit comments

Comments
 (0)