mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-31 14:09:18 +00:00
adjust the version detection after 81e20472a0c5a4a8edc5ec38dc345d580681af81
This commit is contained in:
parent
0f22b2b8af
commit
31aa822494
2
debian/unpack.sh
vendored
2
debian/unpack.sh
vendored
@ -14,7 +14,7 @@ echo "unpack of $LLVM_ARCHIVE"
|
||||
tar Jxf $LLVM_ARCHIVE
|
||||
cd llvm-toolchain-${ORIG_VERSION}_$MAJOR_VERSION~+$VERSION/
|
||||
|
||||
VER_FOUND=$(grep "LLVM_VERSION_MAJOR " llvm/CMakeLists.txt|awk '{print $2}'|cut -d\) -f1)
|
||||
VER_FOUND=$(grep "LLVM_VERSION_MAJOR " cmake/Modules/LLVMVersion.cmake|awk '{print $2}'|cut -d\) -f1)
|
||||
if test "${MAJOR_VERSION}" != "$VER_FOUND" -a "${MAJOR_VERSION}.0.0" != "$VER_FOUND" -a "${MAJOR_VERSION}.0.0git" != "$VER_FOUND" -a "${MAJOR_VERSION}git" != "$VER_FOUND"; then
|
||||
echo "Mismatch of version"
|
||||
echo "Expected $MAJOR_VERSION / Found $VER_FOUND"
|
||||
|
Loading…
Reference in New Issue
Block a user