summaryrefslogtreecommitdiff
path: root/test/lit.common.cfg
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2016-01-22 20:26:10 +0000
committerNico Weber <nicolasweber@gmx.de>2016-01-22 20:26:10 +0000
commitf1e6d2601dcb3f844cdb1e147e405a94c0c613fe (patch)
tree4f7195ece0efac373f2431d4bd7188a272699665 /test/lit.common.cfg
parent76720429ce45a4b87d7aef94555fddad1555d56c (diff)
When building without DIA SDK, don't set suppressions.cpp fail
This test requires llvm-symbolizer to be able to convert a stack address into a function name. It is only able to do this if the DIA SDK was found at cmake time. Add a lit feature for this, and let the test depend on it. See also discussion in D15363. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@258545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.common.cfg')
-rw-r--r--test/lit.common.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lit.common.cfg b/test/lit.common.cfg
index aa3fd03ad..1ae41da5e 100644
--- a/test/lit.common.cfg
+++ b/test/lit.common.cfg
@@ -107,10 +107,12 @@ sanitizer_can_use_cxxabi = getattr(config, 'sanitizer_can_use_cxxabi', True)
if sanitizer_can_use_cxxabi:
config.available_features.add('cxxabi')
-# Test lld if it is available.
if config.has_lld:
config.available_features.add('lld')
+if config.can_symbolize:
+ config.available_features.add('can-symbolize')
+
lit.util.usePlatformSdkOnDarwin(config, lit_config)
def is_darwin_lto_supported():