2013-01-22 02:44:00 +01:00
|
|
|
if( NOT LLVM_BUILD_TOOLS )
|
|
|
|
set(EXCLUDE_FROM_ALL ON)
|
|
|
|
endif()
|
|
|
|
|
2013-12-30 00:06:49 +01: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 15:36:48 +02:00
|
|
|
if(WIN32 OR CYGWIN)
|
|
|
|
set(LLVM_LINK_COMPONENTS Core)
|
|
|
|
endif()
|
|
|
|
|
2019-01-14 19:25:35 +01:00
|
|
|
add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY
|
2010-08-08 02:50:57 +02:00
|
|
|
TestPasses.cpp
|
2010-12-10 03:15:36 +01:00
|
|
|
|
2016-11-19 03:20:59 +01:00
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
|
|
|
bugpoint
|
|
|
|
)
|