Skip to content

Commit ad4370e

Browse files
authored
Merge pull request #263 from ClangBuiltLinux/fix-getting-tot-llvm-version
tc_build: tools: Update location of LLVM_VERSION_MAJOR
2 parents 9658ade + 9763839 commit ad4370e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tc_build/tools.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ def from_env(self, key):
117117
def generate_versioned_binaries(self):
118118
try:
119119
cmakelists_txt = tc_build.utils.curl(
120-
'https://raw.githubusercontent.com/llvm/llvm-project/main/llvm/CMakeLists.txt')
120+
'https://raw.githubusercontent.com/llvm/llvm-project/main/cmake/Modules/LLVMVersion.cmake'
121+
)
121122
except subprocess.CalledProcessError:
122-
llvm_tot_ver = 16
123+
llvm_tot_ver = 19
123124
else:
124125
if not (match := re.search(r'set\(LLVM_VERSION_MAJOR\s+(\d+)', cmakelists_txt)):
125126
raise RuntimeError('Could not find LLVM_VERSION_MAJOR in CMakeLists.txt?')

0 commit comments

Comments
 (0)