2020-01-03 00:16:48 +08:00
|
|
|
add_llvm_pass_plugin(Bye
|
|
|
|
Bye.cpp
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
2020-01-07 16:27:08 +08:00
|
|
|
BUILDTREE_ONLY
|
2020-01-03 00:16:48 +08:00
|
|
|
)
|
2020-01-07 16:27:08 +08:00
|
|
|
|
2019-06-08 23:37:47 +08:00
|
|
|
if (LLVM_LINK_LLVM_DYLIB)
|
|
|
|
target_link_libraries(Bye PUBLIC LLVM)
|
|
|
|
else()
|
|
|
|
target_link_libraries(Bye
|
|
|
|
PUBLIC
|
|
|
|
LLVMSupport
|
|
|
|
LLVMCore
|
|
|
|
LLVMipo
|
|
|
|
LLVMPasses
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2020-01-07 16:27:08 +08:00
|
|
|
if( LLVM_BUILD_EXAMPLES )
|
|
|
|
install(TARGETS ${name} RUNTIME DESTINATION examples)
|
|
|
|
endif()
|
|
|
|
set_target_properties(${name} PROPERTIES FOLDER "Examples")
|