mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
e48c582cfe
------------------------------------------------------------------------ r213663 | delcypher | 2014-07-22 16:41:18 +0100 (Tue, 22 Jul 2014) | 4 lines Added LLVM_ENABLE_RTTI and LLVM_ENABLE_EH options that allow RTTI and EH to globally be controlled. Individual targets (e.g. ExceptionDemo) can still override this by using LLVM_REQUIRE_RTTI and LLVM_REQUIRE_EH if they need to be compiled with RTTI or exception handling respectively. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@213764 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
296 B
CMake
18 lines
296 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Core
|
|
ExecutionEngine
|
|
MCJIT
|
|
Support
|
|
nativecodegen
|
|
)
|
|
|
|
# Enable EH and RTTI for this demo
|
|
set(LLVM_REQUIRES_EH 1)
|
|
set(LLVM_REQUIRES_RTTI 1)
|
|
|
|
add_llvm_example(ExceptionDemo
|
|
ExceptionDemo.cpp
|
|
)
|
|
|
|
set_target_properties(ExceptionDemo PROPERTIES ENABLE_EXPORTS 1)
|