Replacing /GR with /GR- instead of applying both options to the project. This should...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 6 Aug 2013 23:34:04 +0000 (23:34 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 6 Aug 2013 23:34:04 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187836 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index f0b31ce6538566d8b2bf31d12925c901e118413e..094969c8f4fb32c849168ee192878aa9fed202b1 100644 (file)
@@ -191,7 +191,7 @@ function(add_unittest test_suite test_name)
   if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
     set(target_compile_flags "${target_compile_flags} -fno-rtti")
   elseif (MSVC)
-    set(target_compile_flags "${target_compile_flags} /GR-")
+    llvm_replace_compiler_option(target_compile_flags "/GR" "/GR-")
   endif ()
 
   if (SUPPORTS_NO_VARIADIC_MACROS_FLAG)