From 97638399f3f31d316979e9747d15ebfea5eca69b Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 13 Mar 2024 07:32:46 -0700 Subject: [PATCH] tc_build: tools: Update location of LLVM_VERSION_MAJOR It was moved in https://github.com/llvm/llvm-project/commit/81e20472a0c5a4a8edc5ec38dc345d580681af81. Closes: https://github.com/ClangBuiltLinux/tc-build/issues/262 Signed-off-by: Nathan Chancellor --- tc_build/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tc_build/tools.py b/tc_build/tools.py index 2d179b7e..b6110cac 100644 --- a/tc_build/tools.py +++ b/tc_build/tools.py @@ -117,9 +117,10 @@ def from_env(self, key): def generate_versioned_binaries(self): try: cmakelists_txt = tc_build.utils.curl( - 'https://raw.githubusercontent.com/llvm/llvm-project/main/llvm/CMakeLists.txt') + 'https://raw.githubusercontent.com/llvm/llvm-project/main/cmake/Modules/LLVMVersion.cmake' + ) except subprocess.CalledProcessError: - llvm_tot_ver = 16 + llvm_tot_ver = 19 else: if not (match := re.search(r'set\(LLVM_VERSION_MAJOR\s+(\d+)', cmakelists_txt)): raise RuntimeError('Could not find LLVM_VERSION_MAJOR in CMakeLists.txt?')