From e266280d88f006b23925c5062476b316d5407cb1 Mon Sep 17 00:00:00 2001 From: kaliubuntu0206 <139627505+kaliubuntu0206@users.noreply.github.com> Date: Thu, 14 Dec 2023 20:29:06 +0000 Subject: [PATCH] Fixed x86_64-pc-windows-gcc build for rust bindings (#384) --- bindings/rust/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index 692305a..0f677ff 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -17,7 +17,7 @@ fn main() { let mut cc = cc::Build::new(); - #[cfg(windows)] + #[cfg(all(windows, target_env = "msvc"))] { cc.flag("-D_CRT_SECURE_NO_WARNINGS");