2013-01-22 09:44:00 +08:00
|
|
|
if( NOT LLVM_BUILD_TOOLS )
|
|
|
|
set(EXCLUDE_FROM_ALL ON)
|
|
|
|
endif()
|
|
|
|
|
2013-12-30 07:06:49 +08:00
|
|
|
# If we don't need RTTI or EH, there's no reason to export anything
|
|
|
|
# from this plugin.
|
|
|
|
if( NOT LLVM_REQUIRES_RTTI )
|
|
|
|
if( NOT LLVM_REQUIRES_EH )
|
|
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bugpoint.exports)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2014-07-13 21:36:48 +08:00
|
|
|
if(WIN32 OR CYGWIN)
|
|
|
|
set(LLVM_LINK_COMPONENTS Core)
|
|
|
|
endif()
|
|
|
|
|
2010-08-08 08:50:57 +08:00
|
|
|
add_llvm_loadable_module( BugpointPasses
|
|
|
|
TestPasses.cpp
|
2010-12-10 10:15:36 +08:00
|
|
|
|
2016-11-19 10:20:59 +08:00
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
|
|
|
bugpoint
|
|
|
|
)
|