From 7bef96e6072f3eb843371f2715e2f1087244dd56 Mon Sep 17 00:00:00 2001 From: kaliubuntu0206 <139627505+kaliubuntu0206@users.noreply.github.com> Date: Thu, 14 Dec 2023 20:05:31 +0000 Subject: [PATCH] Fixed x86_64-pc-windows-gcc build for rust bindings --- 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 692305ae4..0f677ffd7 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");