Skip to content

Commit

Permalink
feat: print the git hash.
Browse files Browse the repository at this point in the history
git-svn integration is no longer used, so there are no more revisions.
  • Loading branch information
mprobst committed Apr 13, 2022
1 parent 884663e commit 53a23b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ popd
mkdir -p ~/src/llvm-project/build.release
pushd ~/src/llvm-project/build.release

echo === Building based on r$(git log -n 1 | grep 'git-svn-id' | sed -e 's|.*@\([0-9]*\).*|\1|') ...
echo === Building based on r$(git log -n 1 --pretty=format:"%h") ...
cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_ENABLE_PROJECTS=clang ../llvm
ninja clang-format
popd
Expand All @@ -33,7 +33,7 @@ ssh $LINUX_HOST << EOF
mkdir -p ~/src/llvm-project/build.release
pushd ~/src/llvm-project/build.release
echo === Building based on r\$(git log -n 1 | grep 'git-svn-id' | sed -e 's|.*@\([0-9]*\).*|\1|') ...
echo === Building based on r\$(git log -n 1 --pretty=format:"%h") ...
cmake -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_BUILD_STATIC=true -DLLVM_ENABLE_ZLIB=no -DLLVM_ENABLE_PROJECTS=clang ../llvm
ninja clang-format
popd
Expand Down

0 comments on commit 53a23b8

Please sign in to comment.