diff options
Diffstat (limited to 'llvm/cmake/modules/LLVMProcessSources.cmake')
-rw-r--r-- | llvm/cmake/modules/LLVMProcessSources.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/modules/LLVMProcessSources.cmake b/llvm/cmake/modules/LLVMProcessSources.cmake index e8a5a9431a2..7bfca207f68 100644 --- a/llvm/cmake/modules/LLVMProcessSources.cmake +++ b/llvm/cmake/modules/LLVMProcessSources.cmake @@ -41,6 +41,9 @@ function(llvm_process_sources OUT_VAR) if( NOT LLVM_REQUIRES_EH ) if( CMAKE_COMPILER_IS_GNUCXX ) add_definitions( -fno-exceptions ) + elseif( MSVC ) + add_definitions( /EHs-c- ) + add_definitions( /D_HAS_EXCEPTIONS=0 ) endif() endif() if( NOT LLVM_REQUIRES_RTTI ) |