summaryrefslogtreecommitdiffstats
path: root/clang/test/lit.cfg.py
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
commitb7804ef3a746cd6c2c95c81eb19a81fb9df34cc6 (patch)
tree5af4803cd2b9646b01acb025071b13171314d130 /clang/test/lit.cfg.py
parentad7199f3e60a49db023099dcb879fcc9cdf94a2e (diff)
downloadbcm5719-llvm-b7804ef3a746cd6c2c95c81eb19a81fb9df34cc6.tar.gz
bcm5719-llvm-b7804ef3a746cd6c2c95c81eb19a81fb9df34cc6.zip
[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 llvm-svn: 360991
Diffstat (limited to 'clang/test/lit.cfg.py')
-rw-r--r--clang/test/lit.cfg.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/test/lit.cfg.py b/clang/test/lit.cfg.py
index ec08cc1eeae..c66ed9c08ab 100644
--- a/clang/test/lit.cfg.py
+++ b/clang/test/lit.cfg.py
@@ -85,13 +85,7 @@ config.substitutions.append(
os.path.join(config.clang_tools_dir, 'hmaptool'))))
# Plugins (loadable modules)
-# TODO: This should be supplied by Makefile or autoconf.
-if sys.platform in ['win32', 'cygwin']:
- has_plugins = config.enable_shared
-else:
- has_plugins = True
-
-if has_plugins and config.llvm_plugin_ext:
+if config.has_plugins and config.llvm_plugin_ext:
config.available_features.add('plugins')
# Set available features we allow tests to conditionalize on.
OpenPOWER on IntegriCloud