Skip to content

Commit

Permalink
std: Link UWP with allowed libraries only
Browse files Browse the repository at this point in the history
  • Loading branch information
chouquette committed Jul 25, 2019
1 parent ce315cd commit 3becaf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstd/build.rs
Expand Up @@ -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");
Expand Down

0 comments on commit 3becaf4

Please sign in to comment.