[LNT] r176673 - Under some configurations version lines contain extra whitespace between the

Lang Hames lhames at gmail.com
Thu Mar 7 16:55:24 PST 2013


Author: lhames
Date: Thu Mar  7 18:55:24 2013
New Revision: 176673

URL: http://llvm.org/viewvc/llvm-project?rev=176673&view=rev
Log:
Under some configurations version lines contain extra whitespace between the
version number and the build string. Make the relevant regex handle this.

Modified:
    lnt/trunk/lnt/testing/util/compilers.py

Modified: lnt/trunk/lnt/testing/util/compilers.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/testing/util/compilers.py?rev=176673&r1=176672&r2=176673&view=diff
==============================================================================
--- lnt/trunk/lnt/testing/util/compilers.py (original)
+++ lnt/trunk/lnt/testing/util/compilers.py Thu Mar  7 18:55:24 2013
@@ -75,7 +75,7 @@ def get_cc_info(path, cc_flags=[]):
     if cc1_binary is None:
         error("unable to find compiler cc1 binary: %r: %r" % (
                 cc, cc_version))
-    m = re.match(r'(.*) version ([^ ]*) (\([^(]*\))(.*)', version_ln)
+    m = re.match(r'(.*) version ([^ ]*) +(\([^(]*\))(.*)', version_ln)
     if m is not None:
         cc_name,cc_version_num,cc_build_string,cc_extra = m.groups()
     else:





More information about the llvm-commits mailing list