Skip to content

Commit

Permalink
Merge pull request #263 from ClangBuiltLinux/fix-getting-tot-llvm-ver…
Browse files Browse the repository at this point in the history
…sion

tc_build: tools: Update location of LLVM_VERSION_MAJOR
  • Loading branch information
nathanchance authored Mar 13, 2024
2 parents 9658ade + 9763839 commit ad4370e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tc_build/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?')
Expand Down

0 comments on commit ad4370e

Please sign in to comment.