diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-03 19:27:51 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-03 19:27:51 +0000 |
commit | 1bb7c39ba5d52b9cedd4e72dcf9b87e69b8d645b (patch) | |
tree | 42dcb7adaa532670b5bb7fdeb62859bc4b372bf8 /build/compiler_version.py | |
parent | 7184e8414b768003ac3400337761f74c5187a573 (diff) | |
download | chromium_src-1bb7c39ba5d52b9cedd4e72dcf9b87e69b8d645b.zip chromium_src-1bb7c39ba5d52b9cedd4e72dcf9b87e69b8d645b.tar.gz chromium_src-1bb7c39ba5d52b9cedd4e72dcf9b87e69b8d645b.tar.bz2 |
linux: compiler_version.py tweak to work on gcc 4.4
The regex didn't work for GCC = 4.4.
Review URL: http://codereview.chromium.org/341085
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/compiler_version.py')
-rwxr-xr-x | build/compiler_version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/compiler_version.py b/build/compiler_version.py index 5eb467c..69f0a50 100755 --- a/build/compiler_version.py +++ b/build/compiler_version.py @@ -21,7 +21,7 @@ def GetVersion(compiler): compiler = compiler + " -dumpversion" pipe = subprocess.Popen(compiler, stdout=subprocess.PIPE, shell=True) gcc_output = pipe.communicate()[0] - result = re.match(r"(\d+)\.(\d+)\..*", gcc_output) + result = re.match(r"(\d+)\.(\d+)", gcc_output) return result.group(1) + result.group(2) except Exception, e: print >> sys.stderr, "compiler_version.py failed to execute:", compiler |