diff --git a/build.rs b/build.rs index 850f7ee981..6bcaf11a65 100644 --- a/build.rs +++ b/build.rs @@ -53,7 +53,7 @@ fn main() { // This will work on all supported Windows versions but it relies on // us using `SetDefaultDllDirectories` before any libraries are loaded. // See also: src/bin/rustup-init.rs - let delay_load_dlls = ["bcrypt", "powrprof", "secur32"]; + let delay_load_dlls = ["bcrypt", "secur32"]; for dll in delay_load_dlls { println!("cargo:rustc-link-arg-bin=rustup-init=/delayload:{dll}.dll"); } @@ -66,5 +66,5 @@ fn main() { // Rust hides linker warnings meaning mistakes may go unnoticed. // Turning them into errors forces them to be displayed (and the build to fail). // If we do want to ignore specific warnings then `/IGNORE:` should be used. - println!("cargo:cargo:rustc-link-arg-bin=rustup-init=/WX"); + println!("cargo:rustc-link-arg-bin=rustup-init=/WX"); }