diff options
author | mithro@mithis.com <mithro@mithis.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-21 14:15:52 +0000 |
---|---|---|
committer | mithro@mithis.com <mithro@mithis.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-21 14:15:52 +0000 |
commit | 9166090594d955dc516103a2be8373eacd9ece79 (patch) | |
tree | be4b8b2605871e672ee47f2fcd00c85f4a1a63ac /build/compiler_version.py | |
parent | eae30ba0bba49533a0701c8abff117a33e4c878c (diff) | |
download | chromium_src-9166090594d955dc516103a2be8373eacd9ece79.zip chromium_src-9166090594d955dc516103a2be8373eacd9ece79.tar.gz chromium_src-9166090594d955dc516103a2be8373eacd9ece79.tar.bz2 |
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: svn://svn.chromium.org/chrome/trunk/src@258570 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/compiler_version.py')
-rwxr-xr-x | build/compiler_version.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/compiler_version.py b/build/compiler_version.py index b06712d..22785e5 100755 --- a/build/compiler_version.py +++ b/build/compiler_version.py @@ -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) |