bolt/deps/llvm-18.1.8/llvm/unittests/Passes/Plugins/CMakeLists.txt

17 lines
646 B
Text
Raw Normal View History

2025-02-14 19:21:04 +01:00
# 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 AND NOT CYGWIN)
set(LLVM_LINK_COMPONENTS Support Passes Core AsmParser)
add_llvm_unittest(PluginsTests
PluginsTest.cpp
)
export_executable_symbols_for_plugins(PluginsTests)
target_link_libraries(PluginsTests PRIVATE LLVMTestingSupport)
unset(LLVM_LINK_COMPONENTS)
add_subdirectory(TestPlugin)
add_subdirectory(DoublerPlugin)
endif()