Skip to content

Commit

Permalink
Install git-clang-format (alisw#4875)
Browse files Browse the repository at this point in the history
git-clang-format was no longer found after recent changes to
the Clang installation.

This commit installs the tool to bin-safe so that we can
use it again to correctly format our code.
  • Loading branch information
sawenzel authored Mar 8, 2023
1 parent a6ee3db commit 7158ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ esac
# path is fine.
mkdir "$INSTALLROOT/bin-safe"
mv "$INSTALLROOT"/bin/clang* "$INSTALLROOT/bin-safe/"
mv "$INSTALLROOT"/bin/git-clang* "$INSTALLROOT/bin-safe/" # we also need git-clang-format in runtime
sed -i.bak -e "s|bin/clang|bin-safe/clang|g" "$INSTALLROOT/lib/cmake/clang/ClangTargets-release.cmake"
rm "$INSTALLROOT"/lib/cmake/clang/*.bak

Expand Down

0 comments on commit 7158ea6

Please sign in to comment.