Disable warning 4530 for MSVC builds.

We compile with exceptions off for LLVM and all other LLVM
subprojects, so this brings parity to LLD and disables this
warning.

Reviewed by: Rui Ueyama

llvm-svn: 223131
This commit is contained in:
Zachary Turner 2014-12-02 17:57:54 +00:00
parent feab91cac3
commit 392b715caf
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,10 @@ elseif (MSVC_VERSION LESS 1700)
"required to build lld.")
endif()
if (MSVC)
add_definitions(-wd4530) # Suppress 'warning C4530: C++ exception handler used, but unwind semantics are not enabled.'
endif()
macro(add_lld_library name)
llvm_process_sources(srcs ${ARGN})
if (MSVC_IDE OR XCODE)