From: Reid Kleckner Date: Thu, 8 Oct 2015 22:44:39 +0000 (+0000) Subject: Enable gtest SEH when building with clang-cl X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f7789545d94098d6147593fd065fb23086ec2a4;p=oota-llvm.git Enable gtest SEH when building with clang-cl Clang supports SEH well enough that this should work out of the box. If it doesn't, we'll hear about it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249766 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 0ea846aed15..da42e5cf55e 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -22,10 +22,6 @@ function(llvm_update_compile_flags name) list(APPEND LLVM_COMPILE_DEFINITIONS _HAS_EXCEPTIONS=0) list(APPEND LLVM_COMPILE_FLAGS "/EHs-c-") endif() - if (CLANG_CL) - # FIXME: Remove this once clang-cl supports SEH - list(APPEND LLVM_COMPILE_DEFINITIONS "GTEST_HAS_SEH=0") - endif() endif() # LLVM_REQUIRES_RTTI is an internal flag that individual