Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
symphorien committed Dec 19, 2023
1 parent e135c32 commit 68622f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ fn main() {
eprintln!("building with NIXVER={version}");
builder.define("NIXVER", version.to_string().as_str());
let compiler = dbg!(builder.get_compiler());
let compile_args = compiler.args();
if dbg!(compile_args).contains(&OsString::from("c++")) {
// required for exception handlind with libc++
if compiler.is_like_clang() {
// required for exception handling with libc++ on darwin
println!("cargo:rustc-link-lib=c++abi");
}
builder.compile("libnix_adapter.a");
Expand Down

0 comments on commit 68622f4

Please sign in to comment.