Minor fix to regex inside compiler_version.py

These dots where meant to be literal dots, not anything.

BUG=352046

Review URL: https://codereview.chromium.org/207303004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@258570 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
mithro@mithis.com 2014-03-21 14:15:52 +00:00
Родитель 35a6d219f5
Коммит 5108a59304
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -28,7 +28,7 @@ def GetVersion(compiler, tool):
# Unmodified: GNU assembler (GNU Binutils) 2.24
# Ubuntu: GNU assembler (GNU Binutils for Ubuntu) 2.22
# Fedora: GNU assembler version 2.23.2
version_re = re.compile(r"^GNU [^ ]+ .* (\d+).(\d+).*?$", re.M)
version_re = re.compile(r"^GNU [^ ]+ .* (\d+)\.(\d+)\.*?$", re.M)
elif tool == "linker":
compiler = compiler + " -Xlinker --version"
# Using BFD linker
@ -39,7 +39,7 @@ def GetVersion(compiler, tool):
# Unmodified: GNU gold (GNU Binutils 2.24) 1.11
# Ubuntu: GNU gold (GNU Binutils for Ubuntu 2.22) 1.11
# Fedora: GNU gold (version 2.23.2) 1.11
version_re = re.compile(r"^GNU [^ ]+ .* (\d+).(\d+).*?$", re.M)
version_re = re.compile(r"^GNU [^ ]+ .* (\d+)\.(\d+)\.*?$", re.M)
else:
raise Exception("Unknown tool %s" % tool)