Skip to content

Commit 53a23b8

Browse files
committed
feat: print the git hash.
git-svn integration is no longer used, so there are no more revisions.
1 parent 884663e commit 53a23b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ popd
1414
mkdir -p ~/src/llvm-project/build.release
1515
pushd ~/src/llvm-project/build.release
1616

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

0 commit comments

Comments
 (0)