diff options
author | Greg Clayton <gclayton@apple.com> | 2013-02-28 18:46:31 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-02-28 18:46:31 +0000 |
commit | e6be63944eb193cd8d14933e59391b876cbc26ba (patch) | |
tree | fb90f3ecae4c3134a4a176881105e2df34118a26 | |
parent | 0d5911cbe9d34b3d8687cf3d32172db7341e61dc (diff) | |
download | bcm5719-llvm-e6be63944eb193cd8d14933e59391b876cbc26ba.tar.gz bcm5719-llvm-e6be63944eb193cd8d14933e59391b876cbc26ba.zip |
Fix the getCompilerVersion() function to do the right thing with clang 5.0 which now says "LLVM version" instead of "clang version".
llvm-svn: 176282
-rw-r--r-- | lldb/test/lldbtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index d74299f0882..e62b2b7105c 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -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) |