Prevent assert_process_allocs on x86_64-pc-windows-gnu
This will result in plugins that hang during their first allocation.
This commit is contained in:
parent
417a810936
commit
71c7e00f2b
|
@ -17,6 +17,9 @@ const NIH_LOG_ENV: &str = "NIH_LOG";
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
const AARCH64_FTZ_BIT: u64 = 1 << 24;
|
const AARCH64_FTZ_BIT: u64 = 1 << 24;
|
||||||
|
|
||||||
|
#[cfg(all(feature = "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"))]
|
#[cfg(all(debug_assertions, feature = "assert_process_allocs"))]
|
||||||
#[global_allocator]
|
#[global_allocator]
|
||||||
static A: assert_no_alloc::AllocDisabler = assert_no_alloc::AllocDisabler;
|
static A: assert_no_alloc::AllocDisabler = assert_no_alloc::AllocDisabler;
|
||||||
|
|
Loading…
Reference in a new issue