Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3085)

Unified Diff: build/compiler_version.py

Issue 341085: linux: compiler_version.py tweak to work on gcc 4.4 (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/compiler_version.py
diff --git a/build/compiler_version.py b/build/compiler_version.py
index 5eb467c781d37e2b96e2b10ca5ede11d358d1af4..69f0a50be0b298c5b02f34d6571c4a99aff6dbf5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698