From 61ed46c737a83da4d7d69e9c48cbe8629319ff64 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 17 May 2019 06:41:04 +0000 Subject: [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 --- llvm/test/lit.cfg.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'llvm/test/lit.cfg.py') 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: -- cgit v1.2.3