xref: /aosp_15_r20/external/llvm/examples/ExceptionDemo/CMakeLists.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workerset(LLVM_LINK_COMPONENTS
2*9880d681SAndroid Build Coastguard Worker  Core
3*9880d681SAndroid Build Coastguard Worker  ExecutionEngine
4*9880d681SAndroid Build Coastguard Worker  MC
5*9880d681SAndroid Build Coastguard Worker  MCJIT
6*9880d681SAndroid Build Coastguard Worker  RuntimeDyld
7*9880d681SAndroid Build Coastguard Worker  Support
8*9880d681SAndroid Build Coastguard Worker  Target
9*9880d681SAndroid Build Coastguard Worker  nativecodegen
10*9880d681SAndroid Build Coastguard Worker  )
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker# Enable EH and RTTI for this demo
13*9880d681SAndroid Build Coastguard Workerif(NOT LLVM_ENABLE_EH)
14*9880d681SAndroid Build Coastguard Worker  message(FATAL_ERROR "ExceptionDemo must require EH.")
15*9880d681SAndroid Build Coastguard Workerendif()
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Workeradd_llvm_example(ExceptionDemo
18*9880d681SAndroid Build Coastguard Worker  ExceptionDemo.cpp
19*9880d681SAndroid Build Coastguard Worker  )
20*9880d681SAndroid Build Coastguard Worker
21*9880d681SAndroid Build Coastguard Workerexport_executable_symbols(ExceptionDemo)
22