Where was it reviewed?<br>This broke "check-asan", please revert.<br><div class="gmail_quote">On Thu Oct 23 2014 at 3:46:24 PM Aaron Ballman <<a href="mailto:aaron@aaronballman.com">aaron@aaronballman.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: aaronballman<br>
Date: Thu Oct 23 16:58:36 2014<br>
New Revision: 220517<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=220517&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=220517&view=rev</a><br>
Log:<br>
Do not set linker flags for MSVC; they are not the same thing as compiler flags. Note, this is already done in the add_compiler_rt_test test_suite function.<br>
<br>
Modified:<br>
    compiler-rt/trunk/cmake/<u></u>Modules/AddCompilerRT.cmake<br>
<br>
Modified: compiler-rt/trunk/cmake/<u></u>Modules/AddCompilerRT.cmake<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/AddCompilerRT.cmake?rev=220517&r1=220516&r2=220517&view=diff" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project/compiler-rt/trunk/<u></u>cmake/Modules/AddCompilerRT.<u></u>cmake?rev=220517&r1=220516&r2=<u></u>220517&view=diff</a><br>
==============================<u></u>==============================<u></u>==================<br>
--- compiler-rt/trunk/cmake/<u></u>Modules/AddCompilerRT.cmake (original)<br>
+++ compiler-rt/trunk/cmake/<u></u>Modules/AddCompilerRT.cmake Thu Oct 23 16:58:36 2014<br>
@@ -52,8 +52,12 @@ macro(add_compiler_rt_runtime name arch<br>
     # Setup compile flags and definitions.<br>
     set_target_compile_flags(${<u></u>name}<br>
       ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})<br>
-    set_target_link_flags(${name}<br>
-      ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})<br>
+    if (NOT MSVC)<br>
+      # We do not want any custom link flags set on MSVC; especially not the<br>
+      # compiler flags, as with other compilers.<br>
+      set_target_link_flags(${name}<br>
+        ${TARGET_${arch}_CFLAGS} ${LIB_CFLAGS})<br>
+    endif()<br>
     set_property(TARGET ${name} APPEND PROPERTY<br>
       COMPILE_DEFINITIONS ${LIB_DEFS})<br>
     # Setup correct output directory in the build tree.<br>
<br>
<br>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div>