浏览代码

Merge pull request #96747 from bruvzg/fix_ar_det

[MinGW] Fix GCC ar detection.
Rémi Verschelde 1 年之前
父节点
当前提交
9fb54b7d1d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/windows/detect.py

+ 1 - 1
platform/windows/detect.py

@@ -666,7 +666,7 @@ def get_ar_version(env):
         print_warning("Couldn't check version of `ar`.")
         print_warning("Couldn't check version of `ar`.")
         return ret
         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:
     if match:
         ret["major"] = int(match[1])
         ret["major"] = int(match[1])
         ret["minor"] = int(match[2])
         ret["minor"] = int(match[2])