Enable gtest SEH when building with clang-cl
authorReid Kleckner <rnk@google.com>
Thu, 8 Oct 2015 22:44:39 +0000 (22:44 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 8 Oct 2015 22:44:39 +0000 (22:44 +0000)
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

cmake/modules/AddLLVM.cmake

index 0ea846aed15ce07c3bca7de35f94a0302e8cd827..da42e5cf55e74c98bd1988cc3fbaf2ee78ac0350 100644 (file)
@@ -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()
       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
   endif()
 
   # LLVM_REQUIRES_RTTI is an internal flag that individual