Skip to content

Commit e543987

Browse files
committed
build(windows): don't link against powrprof
1 parent 3fab1d1 commit e543987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn main() {
5353
// This will work on all supported Windows versions but it relies on
5454
// us using `SetDefaultDllDirectories` before any libraries are loaded.
5555
// See also: src/bin/rustup-init.rs
56-
let delay_load_dlls = ["bcrypt", "powrprof", "secur32"];
56+
let delay_load_dlls = ["bcrypt", "secur32"];
5757
for dll in delay_load_dlls {
5858
println!("cargo:rustc-link-arg-bin=rustup-init=/delayload:{dll}.dll");
5959
}
@@ -66,5 +66,5 @@ fn main() {
6666
// Rust hides linker warnings meaning mistakes may go unnoticed.
6767
// Turning them into errors forces them to be displayed (and the build to fail).
6868
// If we do want to ignore specific warnings then `/IGNORE:` should be used.
69-
println!("cargo:rustc-link-arg-bin=rustup-init=/WX");
69+
println!("cargo:cargo:rustc-link-arg-bin=rustup-init=/WX");
7070
}

0 commit comments

Comments
 (0)