forked from OSchip/llvm-project
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:
parent
feab91cac3
commit
392b715caf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue