diff --git a/crates/tests/winrt/composable_client/build.rs b/crates/tests/winrt/composable_client/build.rs index 7240b6ff57..a7248d7acb 100644 --- a/crates/tests/winrt/composable_client/build.rs +++ b/crates/tests/winrt/composable_client/build.rs @@ -4,6 +4,7 @@ fn main() { } println!("cargo:rerun-if-changed=src/interop.cpp"); + println!("cargo:rustc-link-lib=onecoreuap"); windows_bindgen::bindgen([ "--in", diff --git a/crates/tests/winrt/constructors_client/build.rs b/crates/tests/winrt/constructors_client/build.rs index ac4cef14f2..8fa150eb14 100644 --- a/crates/tests/winrt/constructors_client/build.rs +++ b/crates/tests/winrt/constructors_client/build.rs @@ -4,6 +4,7 @@ fn main() { } println!("cargo:rerun-if-changed=src/interop.cpp"); + println!("cargo:rustc-link-lib=onecoreuap"); windows_bindgen::bindgen([ "--in",