mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[CMake] Let ExceptionDemo buildable with ENABLE_EH.
llvm-svn: 246152
This commit is contained in:
parent
aaf02e450d
commit
209218a51c
@ -4,7 +4,7 @@ add_subdirectory(HowToUseJIT)
|
||||
add_subdirectory(Kaleidoscope)
|
||||
add_subdirectory(ModuleMaker)
|
||||
|
||||
if( ( NOT WIN32 ) AND ( NOT "${LLVM_NATIVE_ARCH}" STREQUAL "ARM" ) )
|
||||
if(LLVM_ENABLE_EH AND (NOT WIN32) AND (NOT "${LLVM_NATIVE_ARCH}" STREQUAL "ARM"))
|
||||
add_subdirectory(ExceptionDemo)
|
||||
endif()
|
||||
|
||||
|
@ -5,14 +5,14 @@ set(LLVM_LINK_COMPONENTS
|
||||
MCJIT
|
||||
RuntimeDyld
|
||||
Support
|
||||
Target
|
||||
nativecodegen
|
||||
)
|
||||
|
||||
# Enable EH and RTTI for this demo
|
||||
set(LLVM_REQUIRES_EH 1)
|
||||
set(LLVM_REQUIRES_RTTI 1)
|
||||
|
||||
set(LLVM_BUILD_EXAMPLES OFF)
|
||||
if(NOT LLVM_ENABLE_EH)
|
||||
message(FATAL_ERROR "ExceptionDemo must require EH.")
|
||||
endif()
|
||||
|
||||
add_llvm_example(ExceptionDemo
|
||||
ExceptionDemo.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user