2013-01-22 01:44:00 +00:00
|
|
|
if( NOT LLVM_BUILD_TOOLS )
|
|
|
|
set(EXCLUDE_FROM_ALL ON)
|
|
|
|
endif()
|
|
|
|
|
2013-12-29 23:06:49 +00: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 13:36:48 +00:00
|
|
|
if(WIN32 OR CYGWIN)
|
|
|
|
set(LLVM_LINK_COMPONENTS Core)
|
|
|
|
endif()
|
|
|
|
|
2010-08-08 00:50:57 +00:00
|
|
|
add_llvm_loadable_module( BugpointPasses
|
|
|
|
TestPasses.cpp
|
|
|
|
)
|
2010-12-10 02:15:36 +00:00
|
|
|
|
|
|
|
add_dependencies(BugpointPasses bugpoint)
|