Skip to content

Commit

Permalink
fixup! fix linking with libc++abi on darwin with recent llvm
Browse files Browse the repository at this point in the history
  • Loading branch information
symphorien committed Dec 19, 2023
1 parent feea170 commit b0af6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{path::PathBuf, ffi::OsString};
use std::path::PathBuf;
// SPDX-License-Identifier: LGPL-3.0

fn v(s: &str) -> versions::Versioning {
Expand Down Expand Up @@ -51,7 +51,7 @@ fn main() {
};
eprintln!("building with NIXVER={version}");
builder.define("NIXVER", version.to_string().as_str());
let compiler = dbg!(builder.get_compiler());
let compiler = builder.get_compiler();
if compiler.is_like_clang() {
// required for exception handling with libc++ on darwin
println!("cargo:rustc-link-lib=c++abi");
Expand Down

0 comments on commit b0af6b9

Please sign in to comment.