blob: 793cf291ca6f110eae23c396e24c2ee3cd050bcd [file] [log] [blame]
NAKAMURA Takumib5c4b8762013-12-10 11:13:32 +00001set(LLVM_LINK_COMPONENTS
2 Core
3 ExecutionEngine
NAKAMURA Takumi0ad1c302014-10-31 15:27:16 +00004 MC
NAKAMURA Takumib5c4b8762013-12-10 11:13:32 +00005 MCJIT
NAKAMURA Takumif6d661e2015-03-31 00:03:36 +00006 RuntimeDyld
NAKAMURA Takumib5c4b8762013-12-10 11:13:32 +00007 Support
NAKAMURA Takumi34c7b512015-08-27 15:13:14 +00008 Target
NAKAMURA Takumib5c4b8762013-12-10 11:13:32 +00009 nativecodegen
10 )
11
Dan Liewa5bdc842014-07-22 15:41:18 +000012# Enable EH and RTTI for this demo
NAKAMURA Takumi34c7b512015-08-27 15:13:14 +000013if(NOT LLVM_ENABLE_EH)
14 message(FATAL_ERROR "ExceptionDemo must require EH.")
15endif()
NAKAMURA Takumi43056312015-03-31 00:03:43 +000016
Garrison Vennf4d2f842010-02-09 23:22:43 +000017add_llvm_example(ExceptionDemo
18 ExceptionDemo.cpp
19 )
Rafael Espindola03ee04b2013-04-26 19:07:40 +000020
Reid Kleckner3e8c4452015-03-18 20:09:13 +000021export_executable_symbols(ExceptionDemo)