1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Revert "[cmake] Fix a unittest when LLVM_LINK_LLVM_DYLIB is requested."

This reverts commit r342150 as it caused test failure

    LLVM-Unit :: Passes/./PluginsTests/PluginsTests.LoadPlugin

on multiple bots.

llvm-svn: 342169
This commit is contained in:
Volodymyr Sapsai 2018-09-13 20:24:36 +00:00
parent 0fc962508b
commit dcb41910dc

View File

@ -10,17 +10,12 @@ endif()
set(LLVM_LINK_COMPONENTS Support Passes Core) set(LLVM_LINK_COMPONENTS Support Passes Core)
add_llvm_unittest(PluginsTests add_llvm_unittest(PluginsTests
PluginsTest.cpp PluginsTest.cpp
DEPENDS
TestPlugin
) )
export_executable_symbols(PluginsTests) export_executable_symbols(PluginsTests)
set(LLVM_LINK_COMPONENTS)
add_llvm_loadable_module(TestPlugin add_llvm_loadable_module(TestPlugin
TestPlugin.cpp TestPlugin.cpp
DEPENDS
intrinsics_gen
) )
# Put plugin next to the unit test executable. # Put plugin next to the unit test executable.
@ -29,3 +24,6 @@ set_output_directory(TestPlugin
LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR} LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}
) )
set_target_properties(TestPlugin PROPERTIES FOLDER "Tests") set_target_properties(TestPlugin PROPERTIES FOLDER "Tests")
add_dependencies(TestPlugin intrinsics_gen)
add_dependencies(PluginsTests TestPlugin)