<div dir="ltr">... and making sanitizer_common depend on interception will make things ugly. We can't simply refer to REAL(foo) from sanitizer_common, as specific tool has to define REAL(foo) function pointer :(<div>Make sure your patch works fine on Mac and Windows - weak functions are not perfectly portable.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 3:16 PM, Alexey Samsonov <span dir="ltr"><<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">On Thu, Nov 21, 2013 at 2:58 PM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  You can't include interception/interception.h into sanitizer_common files, I tried.<br>
  That may work too if we change both build systems to allow that.<br></blockquote><div><br></div></div><div>I think if we decide to go that path and commit this patch, it's worth specifying that</div><div>sanitizer_common depends on interception (allow to include interception headers, etc.)</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="http://llvm-reviews.chandlerc.com/D2237" target="_blank">http://llvm-reviews.chandlerc.com/D2237</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</div>