chore: fix ubuntu test

This commit is contained in:
darshankabariya 2026-03-03 14:36:01 +05:30
parent d4800312e6
commit 8146a4b713
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22

View File

@ -115,7 +115,8 @@ fn generate_bindgen_code(project_dir: &Path) {
println!("cargo:rustc-link-lib=dl");
println!("cargo:rustc-link-lib=m");
// nim-lsquic embeds BoringSSL (C++) — requires C++ runtime
println!("cargo:rustc-link-lib=c++");
let cpp_lib = if cfg!(target_os = "macos") { "c++" } else { "stdc++" };
println!("cargo:rustc-link-lib={}", cpp_lib);
println!(
"cargo:rustc-link-search=native={}",