diff options
Diffstat (limited to 'lldb/test/lldbtest.py')
-rw-r--r-- | lldb/test/lldbtest.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index e62b2b7105c..f29d947f6fd 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -1024,11 +1024,7 @@ class Base(unittest2.TestCase): compiler = self.getCompiler() version_output = system([which(compiler), "-v"])[1] for line in version_output.split(os.linesep): - compiler_shortname = 'invalid' - for c in ["clang", "LLVM", "gcc"]: - if c in compiler: - compiler_shortname = c - m = re.search('%s version ([0-9\.]+)' % compiler_shortname, line) + m = re.search('version ([0-9\.]+)', line) if m: version = m.group(1) return version |