From 97c9baa133a886b7a9f5f164674dd9b24626b1c0 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Sun, 22 Dec 2024 13:03:45 +0100 Subject: [PATCH] Disable the "nightly" faster memory allocation on Windows (it hangs) --- src/vector/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/mod.rs b/src/vector/mod.rs index c1b1eb1..1815129 100644 --- a/src/vector/mod.rs +++ b/src/vector/mod.rs @@ -229,7 +229,7 @@ impl Ops for T { /// Creates a new N_Vector of the same type as an existing vector /// `nv` and sets the ops field. It does not copy the vector, but /// rather allocates storage for the new vector. - #[cfg(feature = "nightly")] + #[cfg(all(feature = "nightly", not(windows)))] unsafe extern "C" fn nvclone_rust( nw: N_Vector ) -> N_Vector { @@ -249,7 +249,7 @@ impl Ops for T { Box::into_raw(Box::new_in(v, std::alloc::System)) } - #[cfg(not(feature = "nightly"))] + #[cfg(any(not(feature = "nightly"), windows))] unsafe extern "C" fn nvclone_rust( nw: N_Vector ) -> N_Vector {