xref: /aosp_15_r20/external/llvm/tools/bugpoint-passes/CMakeLists.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workerif( NOT LLVM_BUILD_TOOLS )
2*9880d681SAndroid Build Coastguard Worker  set(EXCLUDE_FROM_ALL ON)
3*9880d681SAndroid Build Coastguard Workerendif()
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker# If we don't need RTTI or EH, there's no reason to export anything
6*9880d681SAndroid Build Coastguard Worker# from this plugin.
7*9880d681SAndroid Build Coastguard Workerif( NOT LLVM_REQUIRES_RTTI )
8*9880d681SAndroid Build Coastguard Worker  if( NOT LLVM_REQUIRES_EH )
9*9880d681SAndroid Build Coastguard Worker    set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bugpoint.exports)
10*9880d681SAndroid Build Coastguard Worker  endif()
11*9880d681SAndroid Build Coastguard Workerendif()
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Workerif(WIN32 OR CYGWIN)
14*9880d681SAndroid Build Coastguard Worker  set(LLVM_LINK_COMPONENTS Core)
15*9880d681SAndroid Build Coastguard Workerendif()
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Workeradd_llvm_loadable_module( BugpointPasses
18*9880d681SAndroid Build Coastguard Worker  TestPasses.cpp
19*9880d681SAndroid Build Coastguard Worker  )
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workeradd_dependencies(BugpointPasses bugpoint)
22