<div dir="ltr">I don't think there are any plans to pursue it in the near future, and I estimate that it would be quite a lot of work to make it work for C/C++. I wouldn't recommend that a newbie take this on, as we've discovered that Windows ASan has an enormous maintenance cost.<div><br></div><div>I believe Dmitry Vyukov got TSan working on Windows with GCC and Mingw for Go, but I've never compiled it or tried to use it. A large portion of the complexity in ASan comes from fighting with the various MSVC CRTs (static/dynamic, plus every new version) to intercept heap allocation and key string functions like memset, strlen, etc. This matters a lot when looking for races in C/C++ programs, but if you are looking for races in Go, then these things either aren't necessary, or are greatly simplified by committing to static linking with the Mingw CRT.</div><div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 1, 2019 at 4:22 AM JVApen via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Hello all,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Clang(-cl) on windows has matured well over the last couple of years.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">A long time ago, I've started making our code base compatible with clang-cl, at a time that `try` and `throw` where not yet supported for this platform.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Since that point, I've logged several bugs, did way too many commits on our code and upgraded clang executables several times.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">With the first executables actually being able to run (in full debug builds), a world of opportunities is available.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I was positively surprised to see UBSAN work out-of-the box. (given some false positives in non-standard code, which I still have to fix)</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Unfortunately, TSAN ain't supported as indicated on <a href="https://clang.llvm.org/docs/ThreadSanitizer.html" target="_blank">https://clang.llvm.org/docs/ThreadSanitizer.html</a> and gives a compilation error when you try it.<br></div><div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)" class="gmail_default">Are their active plans to get this activated on Windows in the near future?<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)" class="gmail_default">If not, would it be feasible for a newbie in llvm-code to look at this?<br></div></div><div><br></div><div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)" class="gmail_default">Happy new year!</div><div><div dir="ltr" class="gmail-m_-7110605620523527628gmail_signature"><div dir="ltr"><div><font face="verdana, sans-serif">JVApen</font></div></div></div></div></div></div></div>
_______________________________________________<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>