limit the error to windows only
@@ -270,7 +270,7 @@ macro_rules! declare_types {
{ } => { };
}
-#[cfg(not(neon_profile = "release"))]
+#[cfg(all(windows, not(neon_profile = "release")))]
compile_error!("Neon only builds with --release. For tests, try `cargo test --release`.");
#[test]
