diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/LLVMProcessSources.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/LLVMProcessSources.cmake b/cmake/modules/LLVMProcessSources.cmake index e8a5a9431a..7bfca207f6 100644 --- a/cmake/modules/LLVMProcessSources.cmake +++ b/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 ) |