Merge pull request #268894 from eth3lbert/ast-grep-clang16

ast-grep: fix build with clang 12+
This commit is contained in:
Nick Cao 2023-11-21 08:57:59 -05:00 committed by GitHub
commit 20953fd99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,11 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-OFNqBkPAKaSqDQUWisupj6FlDbm3kw0xq5nbvj04H5U=";
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
};
# error: linker `aarch64-linux-gnu-gcc` not found
postPatch = ''
rm .cargo/config.toml