Merge pull request #136062 from primeos/llvmPackages_13

llvmPackages/update.sh: Support LLVM 13+

authored by Michael Weiss and committed by GitHub b6e5111d 0f157df1

+20 -13
+20 -13
pkgs/development/compilers/llvm/update.sh
··· 19 "$FILE" 20 21 readonly ATTRSET="llvmPackages_$VERSION_MAJOR" 22 - readonly SOURCES=( 23 - "clang-unwrapped.src" 24 - "compiler-rt.src" 25 - "clang-unwrapped.clang-tools-extra_src" 26 - "libcxx.src" 27 - "libcxxabi.src" 28 - "libunwind.src" 29 - "lld.src" 30 - "lldb.src" 31 - "llvm.src" 32 - "llvm.polly_src" 33 - "openmp.src" 34 - ) 35 36 for SOURCE in "${SOURCES[@]}"; do 37 echo "Updating the hash of $SOURCE:"
··· 19 "$FILE" 20 21 readonly ATTRSET="llvmPackages_$VERSION_MAJOR" 22 + 23 + if [ "$VERSION_MAJOR" -ge "13" ]; then 24 + readonly SOURCES=( 25 + "llvm.src" 26 + ) 27 + else 28 + readonly SOURCES=( 29 + "clang-unwrapped.src" 30 + "compiler-rt.src" 31 + "clang-unwrapped.clang-tools-extra_src" 32 + "libcxx.src" 33 + "libcxxabi.src" 34 + "libunwind.src" 35 + "lld.src" 36 + "lldb.src" 37 + "llvm.src" 38 + "llvm.polly_src" 39 + "openmp.src" 40 + ) 41 + fi 42 43 for SOURCE in "${SOURCES[@]}"; do 44 echo "Updating the hash of $SOURCE:"