1 # The order plugin expects to not link against the Analysis, Support and Core
2 # libraries, but expects them to exist in the process loading the plugin. This
3 # doesn't work with DLLs on Windows (where a shared library can't have undefined
4 # references), so just skip this testcase on Windows.
5 if (NOT WIN32 AND NOT CYGWIN)
6 unset(LLVM_LINK_COMPONENTS)
7 add_llvm_library(InlineOrderPlugin MODULE BUILDTREE_ONLY
10 # Put PLUGIN next to the unit test executable.
11 set_output_directory(InlineOrderPlugin
12 BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
13 LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../
15 set_target_properties(InlineOrderPlugin PROPERTIES FOLDER "Tests")
17 # The plugin depends on some of the output files of intrinsics_gen, so make sure
18 # it is built before the plugin.
19 add_dependencies(InlineOrderPlugin intrinsics_gen)
20 add_dependencies(AnalysisTests InlineOrderPlugin)