std: Link UWP with allowed libraries only

This commit is contained in:
Hugo Beauzée-Luyssen 2019-05-27 16:33:00 +02:00
parent ce315cd2fe
commit 3becaf4b9b

View File

@ -39,6 +39,8 @@ fn main() {
println!("cargo:rustc-link-lib=framework=Security");
println!("cargo:rustc-link-lib=framework=Foundation");
println!("cargo:rustc-link-lib=resolv");
} else if target.contains("uwp") {
println!("cargo:rustc-link-lib=ws2_32");
} else if target.contains("windows") {
println!("cargo:rustc-link-lib=advapi32");
println!("cargo:rustc-link-lib=ws2_32");