Skip to content

Commit

Permalink
Add a build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Jun 20, 2024
1 parent c4ae7b1 commit e07025f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BRANCH=`git rev-parse --abbrev-ref HEAD`
VERSION=$(echo "$branch" | grep -oP '(?<=release_)[0-9]+\.[0-9]+\.[0-9]+(?=-based)')

cmake -S llvm --preset=release -DCMAKE_INSTALL_PREFIX=llvm-msvc2022/ && \
cmake --build build-release/ && \
cmake --build build-release/ --target install && \
cp ./build-release/lib/clang.lib llvm-msvc2022/lib && \
tar cvzf llvm-$VERSION-msvc2022.tgz llvm-msvc2022/

0 comments on commit e07025f

Please sign in to comment.