From d21761eebf5f1b2fd5b50cfa631f410413a4a64c Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Sun, 16 Jul 2023 19:35:08 -0700 Subject: [PATCH] Fix version parsing --- Tools/justin/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/justin/build.py b/Tools/justin/build.py index ee6de37b9ce434..caec822238a44b 100644 --- a/Tools/justin/build.py +++ b/Tools/justin/build.py @@ -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]: