Skip to content

Commit

Permalink
[MinGW] Fix GCC ar detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Sep 9, 2024
1 parent d0dc389 commit b1f9271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def get_ar_version(env):
print_warning("Couldn't check version of `ar`.")
return ret

match = re.search(r"GNU ar \(GNU Binutils\) (\d+)\.(\d+)(:?\.(\d+))?", output)
match = re.search(r"GNU ar \(GNU Binutils\) (\d+)\.(\d+)(?:\.(\d+))?", output)
if match:
ret["major"] = int(match[1])
ret["minor"] = int(match[2])
Expand Down

0 comments on commit b1f9271

Please sign in to comment.