summaryrefslogtreecommitdiffstats
path: root/libcxx/utils
diff options
context:
space:
mode:
authorSterling Augustine <saugustine@google.com>2019-09-05 20:44:08 +0000
committerSterling Augustine <saugustine@google.com>2019-09-05 20:44:08 +0000
commitbf7602b261c7167966c6ae5cf153f6e4847ace3b (patch)
tree6f50f369b49f18756ee17d5143e0b684850e13be /libcxx/utils
parent1d138a47e21a08b663742ca3c19b09444823e856 (diff)
downloadbcm5719-llvm-bf7602b261c7167966c6ae5cf153f6e4847ace3b.tar.gz
bcm5719-llvm-bf7602b261c7167966c6ae5cf153f6e4847ace3b.zip
Add testing infrastructure to check if gdb is available for testing.
Reviewers: echristo, EricWF Subscribers: mgorny, christof, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67194 llvm-svn: 371120
Diffstat (limited to 'libcxx/utils')
-rw-r--r--libcxx/utils/libcxx/test/config.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/utils/libcxx/test/config.py b/libcxx/utils/libcxx/test/config.py
index f3534323558..3be1aa16c94 100644
--- a/libcxx/utils/libcxx/test/config.py
+++ b/libcxx/utils/libcxx/test/config.py
@@ -490,6 +490,10 @@ class Configuration(object):
self.config.available_features.add('glibc-%s' % maj_v)
self.config.available_features.add('glibc-%s.%s' % (maj_v, min_v))
+ if 'NOTFOUND' not in self.get_lit_conf('libcxx_gdb'):
+ self.config.available_features.add('libcxx_gdb')
+ self.cxx.libcxx_gdb = self.get_lit_conf('libcxx_gdb')
+
# Support Objective-C++ only on MacOS and if the compiler supports it.
if self.target_info.platform() == "darwin" and \
self.target_info.is_host_macosx() and \
@@ -1072,6 +1076,8 @@ class Configuration(object):
not_py = os.path.join(self.libcxx_src_root, 'utils', 'not.py')
not_str = '%s %s ' % (pipes.quote(sys.executable), pipes.quote(not_py))
sub.append(('not ', not_str))
+ if self.get_lit_conf('libcxx_gdb'):
+ sub.append(('%libcxx_gdb', self.get_lit_conf('libcxx_gdb')))
def can_use_deployment(self):
# Check if the host is on an Apple platform using clang.
OpenPOWER on IntegriCloud