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 |