Skip to content

Commit 9fb54b7

Browse files
committed
Merge pull request #96747 from bruvzg/fix_ar_det
[MinGW] Fix GCC ar detection.
2 parents 7cda7ce + b1f9271 commit 9fb54b7

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)