Feat: fixes

This commit is contained in:
2026-02-27 14:39:42 +01:00
parent fb62b121c1
commit 052a6caa1a
3 changed files with 15 additions and 4 deletions

View File

@@ -4,10 +4,13 @@ fn main() {
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
if target_os == "windows" {
// rusty_link's build.rs only links stdc++ on linux — add it for windows too
println!("cargo:rustc-link-lib=stdc++");
// C++ runtime (stdc++, gcc, gcc_eh, pthread) linked statically via .cargo/config.toml
// using -Wl,-Bstatic. Only Windows system DLLs go here.
println!("cargo:rustc-link-lib=ws2_32");
println!("cargo:rustc-link-lib=iphlpapi");
println!("cargo:rustc-link-lib=winmm");
println!("cargo:rustc-link-lib=ole32");
println!("cargo:rustc-link-lib=oleaut32");
}
#[cfg(windows)]