<div dir="ltr">ASan works on Windows, and it is used by Chrome and Firefox. Currently it only supports 32-bit code. I should update <a href="http://clang.llvm.org/docs/AddressSanitizer.html">http://clang.llvm.org/docs/AddressSanitizer.html</a> with info on how to use it.<br><div><br></div><div>Basically you just pass -fsanitize=address to clang-cl compilations, but linking is different.</div><div><br></div><div>You link against clang_rt.asan-i386.lib if you are building an executable and using the static MSVCRT. If you are building DLLs and using the dynamic CRT, link against both clang_rt.asan_dynamic-i386.lib and clang_rt.asan_dynamic_runtime_thunk-i386.lib.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 4, 2016 at 10:24 PM, Dennis Luehring via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">TSan and ASan useable with clang-cl?<br>
<br>
i can't find any compatiblity info about windows, clang-cl etc.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>