No longer use of MinGW toolchain (fix #57)

This commit is contained in:
0x192 2021-10-21 15:26:51 +02:00
commit 4a60606711
No known key found for this signature in database
GPG key ID: 34D27465928A0A1D

View file

@ -1,16 +0,0 @@
use std::env::var;
fn main() {
let target = var("TARGET").unwrap();
println!("cargo:rerun-if-changed=build.rs");
if target.contains("windows") && !target.contains("msvc") {
println!("cargo:rerun-if-env-changed=WINAPI_NO_BUNDLED_LIBRARIES");
println!("cargo:rerun-if-env-changed=WINAPI_STATIC_NOBUNDLE");
println!("cargo:rustc-link-lib=static=gcc");
println!("cargo:rustc-link-lib=static=stdc++");
println!("cargo:rustc-link-lib=static=winpthread");
}
}