Unverified Commit 2de888a9 authored by Bernardo Meurer's avatar Bernardo Meurer Committed by GitHub
Browse files

Merge pull request #145030 from siraben/tree-sitter-fix-darwin

tree-sitter: only strip on Linux
parents 363f5901 7d6c626a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -51,10 +51,10 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  # Auto strip cannot detect files missing extension.
  fixupPhase = ''
  # Strip failed on darwin: strip: error: symbols referenced by indirect symbol table entries that can't be stripped
  fixupPhase = lib.optionalString stdenv.isLinux ''
    runHook preFixup
    strip -s $out/parser
    $STRIP $out/parser
    runHook postFixup
  '';
}