Commit bc8e4421 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

[test] Disable the Passes/PluginsTest cases on windows with BUILD_SHARED_LIBS

The plugin expects to have undefined references to symbols exported
by the loading process, which isn't supported by shared libraries
on windows.

Differential Revision: https://reviews.llvm.org/D74042
parent e4e9e106
Loading
Loading
Loading
Loading
+24 −18
Original line number Diff line number Diff line
@@ -7,6 +7,11 @@ if (LLVM_ENABLE_PLUGINS)
  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 (NOT WIN32)
  set(LLVM_LINK_COMPONENTS Support Passes Core)
  add_llvm_unittest(PluginsTests
    PluginsTest.cpp
@@ -28,3 +33,4 @@ set_target_properties(TestPlugin PROPERTIES FOLDER "Tests")

  add_dependencies(TestPlugin intrinsics_gen)
  add_dependencies(PluginsTests TestPlugin)
endif()