Unverified Commit 20953fd9 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

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

ast-grep: fix build with clang 12+
parents 1707bcc9 8bba01f0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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