mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 18:36:42 +00:00

Partially remove some of the changes from #102138 as EXPORT_SYMBOLS_FOR_PLUGINS doesn't work on all the configurations.
17 lines
646 B
CMake
17 lines
646 B
CMake
# 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()
|