Skip to content

Commit

Permalink
C++ doesn't support raw-dylib
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Sep 19, 2024
1 parent 504e1b7 commit fb47666
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/samples/components/json_validator_client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion crates/tests/winrt/noexcept/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fb47666

Please sign in to comment.