mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[cmake] Allow EH usage with clang-cl
llvm-svn: 264880
This commit is contained in:
parent
de2c81df75
commit
33b2ba219f
@ -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…
Reference in New Issue
Block a user