From fb47666fa35aba1e58232ccd3083dc4796e0323e Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 19 Sep 2024 08:57:38 -0500 Subject: [PATCH] C++ doesn't support `raw-dylib` --- crates/samples/components/json_validator_client/build.rs | 2 +- .../samples/components/json_validator_winrt_client_cpp/build.rs | 1 - crates/tests/winrt/noexcept/build.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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",