[llvm-commits] [zorg] r131778 - /zorg/trunk/lnt/lnt/testing/util/compilers.py
Daniel Dunbar
daniel at zuster.org
Fri May 20 17:50:02 PDT 2011
Author: ddunbar
Date: Fri May 20 19:50:02 2011
New Revision: 131778
URL: http://llvm.org/viewvc/llvm-project?rev=131778&view=rev
Log:
lnt.testing.utils.compilers: Recognize another way (Apple) GCC prints its version.
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=131778&r1=131777&r2=131778&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/testing/util/compilers.py (original)
+++ zorg/trunk/lnt/lnt/testing/util/compilers.py Fri May 20 19:50:02 2011
@@ -67,7 +67,8 @@
cc_norm_name = 'icc'
cc_build = 'PROD'
- elif (cc_name, cc_extra) == ('gcc',''):
+ elif cc_name == 'gcc' and (cc_extra == '' or
+ re.match(r' \(dot [0-9]+\)', cc_extra)):
cc_norm_name = 'gcc'
m = re.match(r'\(Apple Inc. build ([0-9]*)\)', cc_build_string)
if m:
More information about the llvm-commits
mailing list