From 8c18019d50127a79c92d6f6017bad0c0c83441d4 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 30 Mar 2016 17:28:21 +0000 Subject: [PATCH] [cmake] Allow EH usage with clang-cl llvm-svn: 264880 --- llvm/cmake/modules/AddLLVM.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index e4b0858..1fd0c14 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -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) -- 2.7.4