Skip to content

Commit

Permalink
Fix version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
brandtbucher committed Jul 17, 2023
1 parent 987fd31 commit d21761e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/justin/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_llvm_tool_version(name: str) -> int | None:
except FileNotFoundError:
return None
print(name, process.stdout) # XXX
match = re.search(br"version\s+(\d+)\.\d+\.\d+\s+", process.stdout)
match = re.search(br"version\s+(\d+)\.\d+\.\d+", process.stdout)
return match and int(match.group(1))

def find_llvm_tool(tool: str) -> tuple[str, int]:
Expand Down

0 comments on commit d21761e

Please sign in to comment.