1
0
Fork 0

Allow assert_process_allocs+mingw-w64 in release

This causes the application to halt in debug builds, but it shouldn't be
an issue in release builds.
This commit is contained in:
Robbert van der Helm 2022-12-01 20:18:30 +01:00
parent 5115ff7b47
commit 50fa1008c0

View file

@ -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"))]