[lld] r223131 - Disable warning 4530 for MSVC builds.

Zachary Turner zturner at google.com
Tue Dec 2 09:57:54 PST 2014


Author: zturner
Date: Tue Dec  2 11:57:54 2014
New Revision: 223131

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

Modified:
    lld/trunk/CMakeLists.txt

Modified: lld/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/CMakeLists.txt?rev=223131&r1=223130&r2=223131&view=diff
==============================================================================
--- lld/trunk/CMakeLists.txt (original)
+++ lld/trunk/CMakeLists.txt Tue Dec  2 11:57:54 2014
@@ -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)





More information about the llvm-commits mailing list