From 5d1f4c16d799eb7c0d38459a8b87e4f263a2d631 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 13 Mar 2024 07:09:39 -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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc_build/tools.py b/tc_build/tools.py index 2d179b7e..c35898d0 100644 --- a/tc_build/tools.py +++ b/tc_build/tools.py @@ -117,9 +117,9 @@ 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?')