Skip to content

Commit b1f9271

Browse files
committed
[MinGW] Fix GCC ar detection.
1 parent d0dc389 commit b1f9271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/windows/detect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def get_ar_version(env):
666666
print_warning("Couldn't check version of `ar`.")
667667
return ret
668668

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

0 commit comments

Comments
 (0)