[llvm-commits] [zorg] r151763 - /zorg/trunk/lnt/lnt/testing/util/compilers.py
Daniel Dunbar
daniel at zuster.org
Wed Feb 29 14:06:28 PST 2012
Author: ddunbar
Date: Wed Feb 29 16:06:27 2012
New Revision: 151763
URL: http://llvm.org/viewvc/llvm-project?rev=151763&view=rev
Log:
[lnt] lnt.testing.util.compiler: Update get_cc_info() to recognize dev builds
that have a fake tag number.
Modified:
zorg/trunk/lnt/lnt/testing/util/compilers.py
Modified: zorg/trunk/lnt/lnt/testing/util/compilers.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/testing/util/compilers.py?rev=151763&r1=151762&r2=151763&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/testing/util/compilers.py (original)
+++ zorg/trunk/lnt/lnt/testing/util/compilers.py Wed Feb 29 16:06:27 2012
@@ -83,22 +83,28 @@
cc_norm_name = 'apple_clang'
else:
cc_norm_name = 'clang'
- m = re.search('clang-([0-9]*)', cc_build_string)
+
+ m = re.match(r'\(([^ ]+) ([0-9]+)\)', cc_build_string)
+ if m:
+ cc_src_branch,cc_src_revision = m.groups()
+
+ # These show up with git-svn.
+ if cc_src_branch == '$URL$':
+ cc_src_branch = None
+ else:
+ error('unable to determine Clang development build info: %r' % (
+ (cc_name, cc_build_string),))
+
+ m = re.search('clang-([0-9]*)', cc_src_branch)
if m:
cc_build = 'PROD'
cc_src_tag, = m.groups()
+
+ # We sometimes use a tag of 9999 to indicate a dev build.
+ if cc_src_tag == '9999':
+ cc_build = 'DEV'
else:
cc_build = 'DEV'
- m = re.match(r'\(([^ ]+) ([0-9]+)\)', cc_build_string)
- if m:
- cc_src_branch,cc_src_revision = m.groups()
-
- # These show up with git-svn.
- if cc_src_branch == '$URL$':
- cc_src_branch = None
- else:
- error('unable to determine Clang development build info: %r' % (
- (cc_name, cc_build_string),))
elif cc_name == 'gcc' and 'LLVM build' in cc_extra:
llvm_capable = True
cc_norm_name = 'llvm-gcc'
More information about the llvm-commits
mailing list