Skip to content

Commit

Permalink
Revert "[cmake] Fix a unittest when LLVM_LINK_LLVM_DYLIB is request…
Browse files Browse the repository at this point in the history
…ed."

This reverts commit r342150 as it caused test failure

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

on multiple bots.

llvm-svn: 342169
  • Loading branch information
vsapsai committed Sep 13, 2018
1 parent 3164fcf commit 008982d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions llvm/unittests/Passes/CMakeLists.txt
Expand Up @@ -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.
Expand All @@ -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)

0 comments on commit 008982d

Please sign in to comment.