chore: fix ubuntu test

This commit is contained in:
darshankabariya 2026-03-03 15:20:58 +05:30
parent 8146a4b713
commit 9cd5a30cb2
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
2 changed files with 10 additions and 1 deletions

View File

@ -2,3 +2,8 @@
# when using osx, we need to link against some golang libraries, it did just work with this missing flags
# from: https://github.com/golang/go/issues/42459
rustflags = ["-C", "link-args=-framework CoreFoundation -framework Security -framework CoreServices -lresolv"]
[target.x86_64-unknown-linux-gnu]
# wasmer v2 references __rust_probestack which lld (Rust's default on Linux) can't resolve.
# Force GNU bfd linker to avoid the undefined symbol error.
rustflags = ["-C", "link-arg=-fuse-ld=bfd"]

View File

@ -115,7 +115,11 @@ 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
let cpp_lib = if cfg!(target_os = "macos") { "c++" } else { "stdc++" };
let cpp_lib = if cfg!(target_os = "macos") {
"c++"
} else {
"stdc++"
};
println!("cargo:rustc-link-lib={}", cpp_lib);
println!(