brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · d9da627 Raw
22 lines · plain
1# The advisor 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(InlineAdvisorPlugin MODULE BUILDTREE_ONLY8    InlineAdvisorPlugin.cpp9    )10  # Put PLUGIN next to the unit test executable.11  set_output_directory(InlineAdvisorPlugin12      BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../13      LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/../14      )15  set_target_properties(InlineAdvisorPlugin PROPERTIES FOLDER "LLVM/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(InlineAdvisorPlugin intrinsics_gen)20  add_dependencies(AnalysisTests InlineAdvisorPlugin)21endif()22