llvm.org GIT mirror llvm / b547fc7
[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/llvm/trunk@360991 91177308-0d34-0410-b5e6-96231b3b80d8 Petr Hosek a month ago
1 changed file(s) with 3 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
919919
920920 # Plugin support
921921 # FIXME: Make this configurable.
922 if(WIN32 OR CYGWIN)
923 if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
924 set(LLVM_ENABLE_PLUGINS ON)
925 else()
926 set(LLVM_ENABLE_PLUGINS OFF)
927 endif()
922 if(BUILD_SHARED_LIBS OR LLVM_BUILD_LLVM_DYLIB)
923 set(LLVM_ENABLE_PLUGINS ON)
928924 else()
929 set(LLVM_ENABLE_PLUGINS ON)
925 set(LLVM_ENABLE_PLUGINS OFF)
930926 endif()
931927
932928 # By default we should enable LLVM_ENABLE_IDE only for multi-configuration