mirror of https://github.com/WebAssembly/wasi-sdk
Support getting LLVM version from its new location (#399)
https://github.com/llvm/llvm-project/pull/84641 changed its location.pull/400/head
parent
9389ea5eee
commit
96bbd95197
@ -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
|
||||
|
Loading…
Reference in new issue