From dcb41910dc9263a4bdca8fb85dd6ad7a5511dc1b Mon Sep 17 00:00:00 2001 From: Volodymyr Sapsai Date: Thu, 13 Sep 2018 20:24:36 +0000 Subject: [PATCH] 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 --- unittests/Passes/CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/unittests/Passes/CMakeLists.txt b/unittests/Passes/CMakeLists.txt index fa16d048d76..d90df209d4e 100644 --- a/unittests/Passes/CMakeLists.txt +++ b/unittests/Passes/CMakeLists.txt @@ -10,17 +10,12 @@ endif() set(LLVM_LINK_COMPONENTS Support Passes Core) add_llvm_unittest(PluginsTests PluginsTest.cpp - - DEPENDS - TestPlugin ) export_executable_symbols(PluginsTests) +set(LLVM_LINK_COMPONENTS) add_llvm_loadable_module(TestPlugin TestPlugin.cpp - - DEPENDS - intrinsics_gen ) # 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} ) set_target_properties(TestPlugin PROPERTIES FOLDER "Tests") + +add_dependencies(TestPlugin intrinsics_gen) +add_dependencies(PluginsTests TestPlugin)