Cleanup MinGW LLVM linkage workaround

This commit is contained in:
Mateusz Mikuła 2020-06-19 15:02:12 +02:00
parent e8ff4bcbd0
commit 8a816cad27

View file

@ -293,11 +293,9 @@ fn main() {
}
}
// LLVM requires symbols from this library, but apparently they're not printed
// during llvm-config?
// Libstdc++ depends on pthread which Rust doesn't link on MinGW
// since nothing else requires it.
if target.contains("windows-gnu") {
println!("cargo:rustc-link-lib=static-nobundle=gcc_s");
println!("cargo:rustc-link-lib=static-nobundle=pthread");
println!("cargo:rustc-link-lib=dylib=uuid");
}
}