[llvm] r249766 - Enable gtest SEH when building with clang-cl

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 15:44:40 PDT 2015


Author: rnk
Date: Thu Oct  8 17:44:39 2015
New Revision: 249766

URL: http://llvm.org/viewvc/llvm-project?rev=249766&view=rev
Log:
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.

Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=249766&r1=249765&r2=249766&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Oct  8 17:44:39 2015
@@ -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




More information about the llvm-commits mailing list