summaryrefslogtreecommitdiffstats
path: root/llvm/test/lit.cfg.py
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2019-05-17 06:41:04 +0000
committerPetr Hosek <phosek@chromium.org>2019-05-17 06:41:04 +0000
commit61ed46c737a83da4d7d69e9c48cbe8629319ff64 (patch)
treea12d0a3608b4b34cc2002f591fd833025c566b02 /llvm/test/lit.cfg.py
parentae1597d360d06214ff71814b5837565d42229265 (diff)
downloadbcm5719-llvm-61ed46c737a83da4d7d69e9c48cbe8629319ff64.tar.gz
bcm5719-llvm-61ed46c737a83da4d7d69e9c48cbe8629319ff64.zip
[Bugpoint] Only run plugins tests if plugins are enabled
This is a followup to r360991 which applies the same logic to LLVM. Differential Revision: https://reviews.llvm.org/D62050 llvm-svn: 360993
Diffstat (limited to 'llvm/test/lit.cfg.py')
-rw-r--r--llvm/test/lit.cfg.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 5a4b1e8579e..9228200048c 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -187,14 +187,8 @@ else:
config.available_features.add('can-execute')
# Loadable module
-# FIXME: This should be supplied by Makefile or autoconf.
-if sys.platform in ['win32', 'cygwin']:
- loadable_module = (config.enable_shared == 1)
-else:
- loadable_module = True
-
-if loadable_module:
- config.available_features.add('loadable_module')
+if config.has_plugins:
+ config.available_features.add('plugins')
# Static libraries are not built if BUILD_SHARED_LIBS is ON.
if not config.build_shared_libs and not config.link_llvm_dylib:
OpenPOWER on IntegriCloud