<div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">On Mon, Jun 25, 2012 at 5:00 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-family:arial,helvetica,sans-serif"><font size="2"><div>A) We could require the host compiler to have support for -faddress-sanitizer, but ensure that the just-built runtime library is used rather than the host compiler's runtime library.</div>
</font></div></blockquote><div><br></div><div>FWIW, I've started implementing this and folks can try it out as of r159134.</div><div><br></div><div>The way to test out the current CMake build is to comment out the exclusion of 'compiler-rt' from the LLVM build in 'projects/CMakeLists.txt'. Then you can build, for example 'make AsanTests' and it should compile both the instrumented and non-instrumented unit tests.</div>
<div><br></div><div>Currently, you have to run them by hand -- I need to refactor a bit of the LLVM cmake build before i can wire in nice convenience targets for running these -- but I've tried and they seem to work for me... </div>
</div></font></div>