adjust the version detection after 81e20472a0c5a4a8edc5ec38dc345d580681af81

This commit is contained in:
Sylvestre Ledru 2024-03-12 21:38:23 +01:00
parent 0f22b2b8af
commit 31aa822494

2
debian/unpack.sh vendored
View File

@ -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"