[cfe-dev] TSan and ASan useable with clang-cl?

Reid Kleckner via cfe-dev cfe-dev at lists.llvm.org
Tue Apr 5 09:55:57 PDT 2016


ASan works on Windows, and it is used by Chrome and Firefox. Currently it
only supports 32-bit code. I should update
http://clang.llvm.org/docs/AddressSanitizer.html with info on how to use it.

Basically you just pass -fsanitize=address to clang-cl compilations, but
linking is different.

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.

On Mon, Apr 4, 2016 at 10:24 PM, Dennis Luehring via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> TSan and ASan useable with clang-cl?
>
> i can't find any compatiblity info about windows, clang-cl etc.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160405/54a52181/attachment.html>


More information about the cfe-dev mailing list