Index: llvm/unittests/Passes/CMakeLists.txt =================================================================== --- llvm/unittests/Passes/CMakeLists.txt +++ llvm/unittests/Passes/CMakeLists.txt @@ -7,6 +7,14 @@ add_definitions(-DLLVM_ENABLE_PLUGINS) endif() +# The plugin expects to not link against the Support and Core libraries, +# but expects them to exist in the process loading the plugin. This doesn't +# work with DLLs on Windows (where a shared library can't have undefined +# references), so just skip this testcase on Windows. +if (WIN32) + return() +endif() + set(LLVM_LINK_COMPONENTS Support Passes Core) add_llvm_unittest(PluginsTests PluginsTest.cpp