<br><br><div class="gmail_quote">On Mon, Feb 21, 2011 at 1:29 AM, Jesper Eskilson <span dir="ltr"><<a href="mailto:jesper.eskilson@iar.com">jesper.eskilson@iar.com</a>></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<<a href="mailto:themiwi@gmail.com" target="_blank">themiwi@gmail.com</a>> 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't do this trick. This means, you'll have to<br>
put it in your build system, and once you've done that, why should you<br>
use the compiler then? Especially, since you'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't doing some crazy stuff you haven't considered...<br>
</blockquote>
<br></div>
LD_PRELOAD isn'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'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>