2020-01-10 17:05:30 +08:00
|
|
|
if(LLVM_BYE_LINK_INTO_TOOLS)
|
|
|
|
message(WARNING "Setting LLVM_BYE_LINK_INTO_TOOLS=ON only makes sense for testing purpose")
|
2019-06-08 23:37:47 +08:00
|
|
|
endif()
|
|
|
|
|
2020-05-12 16:54:51 +08:00
|
|
|
# The plugin expects to not link against the Support and Core libraries,
|
|
|
|
# but expects them to exist in the process loading the plugin. This doesn't
|
|
|
|
# work with DLLs on Windows (where a shared library can't have undefined
|
|
|
|
# references), so just skip this example on Windows.
|
|
|
|
if (NOT WIN32)
|
|
|
|
add_llvm_pass_plugin(Bye
|
|
|
|
Bye.cpp
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
|
|
|
BUILDTREE_ONLY
|
|
|
|
)
|
2020-01-10 17:05:30 +08:00
|
|
|
|
2021-11-04 10:09:30 +08:00
|
|
|
install(TARGETS ${name} RUNTIME DESTINATION "${CMAKE_INSTALL_DOCDIR}/examples")
|
2020-05-12 16:54:51 +08:00
|
|
|
set_target_properties(${name} PROPERTIES FOLDER "Examples")
|
|
|
|
endif()
|