[Lldb-commits] [lldb] r176282 - Fix the getCompilerVersion() function to do the right thing with clang 5.0 which now says "LLVM version" instead of "clang version".
Greg Clayton
gclayton at apple.com
Thu Feb 28 10:46:31 PST 2013
Author: gclayton
Date: Thu Feb 28 12:46:31 2013
New Revision: 176282
URL: http://llvm.org/viewvc/llvm-project?rev=176282&view=rev
Log:
Fix the getCompilerVersion() function to do the right thing with clang 5.0 which now says "LLVM version" instead of "clang version".
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=176282&r1=176281&r2=176282&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Thu Feb 28 12:46:31 2013
@@ -1025,7 +1025,7 @@ class Base(unittest2.TestCase):
version_output = system([which(compiler), "-v"])[1]
for line in version_output.split(os.linesep):
compiler_shortname = 'invalid'
- for c in ["clang", "gcc"]:
+ for c in ["clang", "LLVM", "gcc"]:
if c in compiler:
compiler_shortname = c
m = re.search('%s version ([0-9\.]+)' % compiler_shortname, line)
More information about the lldb-commits
mailing list