Index: build/compiler_version.py |
diff --git a/build/compiler_version.py b/build/compiler_version.py |
index b06712d25b2d3c25990a97f99a630a66c703ce0b..22785e5ae2ee9dd8498698e31943b9e5ad1b1c31 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) |
Inactive
2014/03/21 14:45:10
The last "\.*" looks weird, I think it should be "
|
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) |
Inactive
2014/03/21 14:45:10
Ditto
|
else: |
raise Exception("Unknown tool %s" % tool) |