Fixed x86_64-pc-windows-gcc build for rust bindings (#384)
This commit is contained in:
parent
712ccb629d
commit
e266280d88
|
@ -17,7 +17,7 @@ fn main() {
|
||||||
|
|
||||||
let mut cc = cc::Build::new();
|
let mut cc = cc::Build::new();
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(all(windows, target_env = "msvc"))]
|
||||||
{
|
{
|
||||||
cc.flag("-D_CRT_SECURE_NO_WARNINGS");
|
cc.flag("-D_CRT_SECURE_NO_WARNINGS");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue