mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-04 10:59:04 +00:00
[cmake] Allow EH usage with clang-cl
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264880 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34be7e62f2
commit
f3ba4d1f7a
@ -8,9 +8,9 @@ function(llvm_update_compile_flags name)
|
||||
set(update_src_props ON)
|
||||
endif()
|
||||
|
||||
# LLVM_REQUIRES_EH is an internal flag that individual
|
||||
# targets can use to force EH
|
||||
if((LLVM_REQUIRES_EH OR LLVM_ENABLE_EH) AND NOT CLANG_CL)
|
||||
# LLVM_REQUIRES_EH is an internal flag that individual targets can use to
|
||||
# force EH
|
||||
if(LLVM_REQUIRES_EH OR LLVM_ENABLE_EH)
|
||||
if(NOT (LLVM_REQUIRES_RTTI OR LLVM_ENABLE_RTTI))
|
||||
message(AUTHOR_WARNING "Exception handling requires RTTI. Enabling RTTI for ${name}")
|
||||
set(LLVM_REQUIRES_RTTI ON)
|
||||
|
Loading…
x
Reference in New Issue
Block a user