diff --git a/src/wrapper/util.rs b/src/wrapper/util.rs index 3ccdfcab..b81b4f4b 100644 --- a/src/wrapper/util.rs +++ b/src/wrapper/util.rs @@ -17,7 +17,11 @@ const NIH_LOG_ENV: &str = "NIH_LOG"; #[cfg(target_arch = "aarch64")] const AARCH64_FTZ_BIT: u64 = 1 << 24; -#[cfg(all(feature = "assert_process_allocs", all(windows, target_env = "gnu")))] +#[cfg(all( + debug_assertions, + physical_sizefeature = "assert_process_allocs", + all(windows, target_env = "gnu") +))] compile_error!("The 'assert_process_allocs' feature does not work correctly in combination with the 'x86_64-pc-windows-gnu' target, see https://github.com/Windfisch/rust-assert-no-alloc/issues/7"); #[cfg(all(debug_assertions, feature = "assert_process_allocs"))]