Skip to content

Commit

Permalink
tc_build: tools: Update location of LLVM_VERSION_MAJOR
Browse files Browse the repository at this point in the history
It was moved in llvm/llvm-project@81e2047.

Closes: #262
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Mar 13, 2024
1 parent 9658ade commit 5d1f4c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tc_build/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?')
Expand Down

0 comments on commit 5d1f4c1

Please sign in to comment.