diff --git a/crates/samples/components/json_validator_client/build.rs b/crates/samples/components/json_validator_client/build.rs index a669dceeb0..4eeb428655 100644 --- a/crates/samples/components/json_validator_client/build.rs +++ b/crates/samples/components/json_validator_client/build.rs @@ -4,7 +4,7 @@ fn main() { } println!("cargo:rerun-if-changed=src/client.cpp"); - println!("cargo:rustc-link-lib=windows.0.52.0"); + println!("cargo:rustc-link-lib=onecoreuap"); cc::Build::new() .cpp(true) diff --git a/crates/samples/components/json_validator_winrt_client_cpp/build.rs b/crates/samples/components/json_validator_winrt_client_cpp/build.rs index d8d3f5a9d8..2563c921d5 100644 --- a/crates/samples/components/json_validator_winrt_client_cpp/build.rs +++ b/crates/samples/components/json_validator_winrt_client_cpp/build.rs @@ -4,7 +4,6 @@ fn main() { } println!("cargo:rerun-if-changed=src/client.cpp"); - println!("cargo:rustc-link-lib=windows.0.52.0"); let include = std::env::var("OUT_DIR").unwrap(); diff --git a/crates/tests/winrt/noexcept/build.rs b/crates/tests/winrt/noexcept/build.rs index 74b3fa8ad2..1ed47a7deb 100644 --- a/crates/tests/winrt/noexcept/build.rs +++ b/crates/tests/winrt/noexcept/build.rs @@ -7,7 +7,7 @@ fn main() { let metadata_dir = format!("{}\\System32\\WinMetadata", env!("windir")); let mut command = std::process::Command::new("midlrt.exe"); println!("cargo:rerun-if-changed=src/interop.cpp"); - println!("cargo:rustc-link-lib=windows.0.52.0"); + println!("cargo:rustc-link-lib=onecoreuap"); command.args([ "/winrt",