brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1010 B · 941e18e Raw
22 lines · plain
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 undefined4# references), so just skip this testcase on Windows.5if ((NOT WIN32 AND NOT CYGWIN) OR LLVM_BUILD_LLVM_DYLIB)6  unset(LLVM_LINK_COMPONENTS)7  add_llvm_library(InlineOrderPlugin MODULE BUILDTREE_ONLY8    InlineOrderPlugin.cpp9    )10  # Put PLUGIN next to the unit test executable.11  set_output_directory(InlineOrderPlugin12      BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../13      LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../14      )15  set_target_properties(InlineOrderPlugin PROPERTIES FOLDER "Tests")16 17  # The plugin depends on some of the output files of intrinsics_gen, so make sure18  # it is built before the plugin.19  add_dependencies(InlineOrderPlugin intrinsics_gen)20  add_dependencies(AnalysisTests InlineOrderPlugin)21endif()22