<br><br><div class="gmail_quote">On Mon, Feb 21, 2011 at 1:29 AM, Jesper Eskilson <span dir="ltr">&lt;<a href="mailto:jesper.eskilson@iar.com">jesper.eskilson@iar.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 02/19/2011 06:27 PM, Michael Wild wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On 02/19/2011 06:16 PM, Jed Brown wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Fri, Feb 18, 2011 at 17:16, Michael Wild&lt;<a href="mailto:themiwi@gmail.com" target="_blank">themiwi@gmail.com</a>&gt;  wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Well, cl.exe for one doesn&#39;t do this trick. This means, you&#39;ll have to<br>
put it in your build system, and once you&#39;ve done that, why should you<br>
use the compiler then? Especially, since you&#39;ll want to be consistent<br>
across platforms.<br>
<br>
</blockquote>
<br>
You can use LD_PRELOAD (DLL injection on Windows) to pick up the<br>
dependencies. That has the advantage of automatically working for any<br>
compiler or other custom command, for any source language. Tup does this.<br>
<br>
</blockquote>
<br>
Tup was already discussed on this list quite some time ago. Using<br>
LD_PRELOAD to do those things makes my skin crawl. You need to intercept<br>
system calls AND C-library functions and have to hope that the compiler<br>
isn&#39;t doing some crazy stuff you haven&#39;t considered...<br>
</blockquote>
<br></div>
LD_PRELOAD isn&#39;t that bad of a hack, actually. Intercepting open(), read(), and possibly mmap() should cover most cases.<br></blockquote><div><br>So  <br>cl.exe /showincludes<br>
<br>doesn&#39;t work?  According to this, it is available.<br><br><a href="http://www.conifersystems.com/2008/10/09/dependencies-from-showincludes/" target="_blank">http://www.conifersystems.com/2008/10/09/dependencies-from-showincludes/</a><br>
<br><br><br></div></div>