Skip to content

Commit 3becaf4

Browse files
committed
std: Link UWP with allowed libraries only
1 parent ce315cd commit 3becaf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ fn main() {
3939
println!("cargo:rustc-link-lib=framework=Security");
4040
println!("cargo:rustc-link-lib=framework=Foundation");
4141
println!("cargo:rustc-link-lib=resolv");
42+
} else if target.contains("uwp") {
43+
println!("cargo:rustc-link-lib=ws2_32");
4244
} else if target.contains("windows") {
4345
println!("cargo:rustc-link-lib=advapi32");
4446
println!("cargo:rustc-link-lib=ws2_32");

0 commit comments

Comments
 (0)