Skip to content

Commit

Permalink
Support getting LLVM version from its new location
Browse files Browse the repository at this point in the history
llvm/llvm-project#84641 changed its location.
  • Loading branch information
glandium committed Mar 12, 2024
1 parent 9389ea5 commit 8964ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm_version_major.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#/bin/bash
LLVM_PROJ_DIR=${1:-./src/llvm-project}
MAJOR=`grep "set(LLVM_VERSION_MAJOR" $LLVM_PROJ_DIR/llvm/CMakeLists.txt | awk '{print substr($2, 1, length($2) - 1)}'`
MAJOR=`(grep "set(LLVM_VERSION_MAJOR" $LLVM_PROJ_DIR/llvm/CMakeLists.txt || grep "set(LLVM_VERSION_MAJOR" $LLVM_PROJ_DIR/cmake/Modules/LLVMVersion.cmake) | awk '{print substr($2, 1, length($2) - 1)}'`
echo $MAJOR

0 comments on commit 8964ff1

Please sign in to comment.