<div dir="ltr">Does it make sense to add -FS/ to SANITIZER_COMMON_FLAGS instead?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 11:19 PM, Timur Iskhodzhanov <span dir="ltr"><<a href="mailto:timurrrr@google.com" target="_blank">timurrrr@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: timurrrr<br>
Date: Thu Jan 30 13:19:29 2014<br>
New Revision: 200482<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=200482&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=200482&view=rev</a><br>
Log:<br>
Add an /FS flag to the lib/interception CMake to make it buildable with VS2013 too<br>
<br>
Modified:<br>
    compiler-rt/trunk/lib/interception/CMakeLists.txt<br>
<br>
Modified: compiler-rt/trunk/lib/interception/CMakeLists.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/CMakeLists.txt?rev=200482&r1=200481&r2=200482&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/CMakeLists.txt?rev=200482&r1=200481&r2=200482&view=diff</a><br>

==============================================================================<br>
--- compiler-rt/trunk/lib/interception/CMakeLists.txt (original)<br>
+++ compiler-rt/trunk/lib/interception/CMakeLists.txt Thu Jan 30 13:19:29 2014<br>
@@ -9,7 +9,15 @@ set(INTERCEPTION_SOURCES<br>
<br>
 include_directories(..)<br>
<br>
-set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})<br>
+if (NOT MSVC)<br>
+  set(INTERCEPTION_CFLAGS<br>
+    ${SANITIZER_COMMON_CFLAGS})<br>
+    -fno-rtti)<br>
+else()<br>
+  set(INTERCEPTION_CFLAGS<br>
+    ${SANITIZER_COMMON_CFLAGS}<br>
+    /GR- /FS)<br>
+endif()<br>
<br>
 if(APPLE)<br>
   # Build universal binary on APPLE.<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">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/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</div>