summaryrefslogtreecommitdiffstats
path: root/debuginfo-tests/lit.cfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'debuginfo-tests/lit.cfg.py')
-rw-r--r--debuginfo-tests/lit.cfg.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/debuginfo-tests/lit.cfg.py b/debuginfo-tests/lit.cfg.py
index cd20eaad7b2..6b47dd50d1d 100644
--- a/debuginfo-tests/lit.cfg.py
+++ b/debuginfo-tests/lit.cfg.py
@@ -5,6 +5,7 @@ import platform
import re
import subprocess
import tempfile
+import commands
import lit.formats
import lit.util
@@ -61,3 +62,11 @@ tools = [
llvm_config.add_tool_substitutions(tools, tool_dirs)
lit.util.usePlatformSdkOnDarwin(config, lit_config)
+
+if platform.system() == 'Darwin':
+ xcode_lldb_vers = commands.getoutput("xcrun lldb --version")
+ match = re.search('lldb-(\d+)', xcode_lldb_vers)
+ if match:
+ apple_lldb_vers = int(match.group(1))
+ if apple_lldb_vers < 1000:
+ config.available_features.add('apple-lldb-pre-1000')
OpenPOWER on IntegriCloud