dump_syms: fix building with LLVM 16

Builds were broken on Darwin with
https://github.com/nixos/nixpkgs/pull/241692, so this applies the
workaround from https://github.com/nixos/nixpkgs/issues/166205
This commit is contained in:
Ivan Petkov 2023-12-11 10:26:17 -08:00
parent 29d6c96900
commit 904913ee16
No known key found for this signature in database
GPG key ID: BB6F9EFC065832B6

View file

@ -30,6 +30,11 @@ rustPlatform.buildRustPackage {
cargoSha256 = "sha256-5WiGckh/jq7AHH3JWZL8tIsj1Gqr8iLX7IyppKsW96k=";
# Workaround for https://github.com/nixos/nixpkgs/issues/166205
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
nativeBuildInputs = [
pkg-config
];