diff --git a/src/atomic_shim.rs b/src/atomic_shim.rs index 11b5946b6aa..92281fdacc9 100644 --- a/src/atomic_shim.rs +++ b/src/atomic_shim.rs @@ -5,7 +5,7 @@ use crate::prelude::*; -#[cfg(feature = "jit")] +#[cfg(all(feature = "jit", unix))] #[no_mangle] pub static mut __cg_clif_global_atomic_mutex: libc::pthread_mutex_t = libc::PTHREAD_MUTEX_INITIALIZER;