summaryrefslogtreecommitdiff
path: root/test/lit.site.cfg.py.in
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-05-17 06:07:37 +0000
committerPetr Hosek <phosek@chromium.org>2019-05-17 06:07:37 +0000
commitb683b09450435719ac161de454805cbe234a872c (patch)
tree19598eaba69f5300c84730844ab406fd7c9eaf7f /test/lit.site.cfg.py.in
parent2a9fb4c8c87f0a5a17fe246a3940a33954de383c (diff)
downloadclang-b683b09450435719ac161de454805cbe234a872c.tar.gz
[Analysis] Only run plugins tests if plugins are actually enabled
When plugins aren't enabled, don't try to run plugins tests. Don't enable plugins unconditionally based on the platform, instead check if LLVM shared library is actually being built which may not be the case for every host configuration, even if the host itself supports plugins. This addresses test failures introduced by r360891/D59464. Differential Revision: https://reviews.llvm.org/D62050 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.site.cfg.py.in')
-rw-r--r--test/lit.site.cfg.py.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lit.site.cfg.py.in b/test/lit.site.cfg.py.in
index 953fd8dd33..06633b227c 100644
--- a/test/lit.site.cfg.py.in
+++ b/test/lit.site.cfg.py.in
@@ -27,6 +27,7 @@ config.enable_backtrace = @ENABLE_BACKTRACES@
config.host_arch = "@HOST_ARCH@"
config.python_executable = "@PYTHON_EXECUTABLE@"
config.use_z3_solver = lit_config.params.get('USE_Z3_SOLVER', "@USE_Z3_SOLVER@")
+config.has_plugins = @LLVM_ENABLE_PLUGINS@
# Support substitution of the tools and libs dirs with user parameters. This is
# used when we can't determine the tool dir at configuration time.