[CMake] Gyp VS CMake

j s j.s4403 at gmail.com
Mon Feb 21 12:16:11 EST 2011


On Mon, Feb 21, 2011 at 1:29 AM, Jesper Eskilson <jesper.eskilson at iar.com>wrote:

> On 02/19/2011 06:27 PM, Michael Wild wrote:
>
>> On 02/19/2011 06:16 PM, Jed Brown wrote:
>>
>>> On Fri, Feb 18, 2011 at 17:16, Michael Wild<themiwi at gmail.com>  wrote:
>>>
>>>  Well, cl.exe for one doesn't do this trick. This means, you'll have to
>>>> put it in your build system, and once you've done that, why should you
>>>> use the compiler then? Especially, since you'll want to be consistent
>>>> across platforms.
>>>>
>>>>
>>> You can use LD_PRELOAD (DLL injection on Windows) to pick up the
>>> dependencies. That has the advantage of automatically working for any
>>> compiler or other custom command, for any source language. Tup does this.
>>>
>>>
>> Tup was already discussed on this list quite some time ago. Using
>> LD_PRELOAD to do those things makes my skin crawl. You need to intercept
>> system calls AND C-library functions and have to hope that the compiler
>> isn't doing some crazy stuff you haven't considered...
>>
>
> LD_PRELOAD isn't that bad of a hack, actually. Intercepting open(), read(),
> and possibly mmap() should cover most cases.
>

So
cl.exe /showincludes

doesn't work?  According to this, it is available.

http://www.conifersystems.com/2008/10/09/dependencies-from-showincludes/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110221/cf9ff665/attachment.htm>


More information about the CMake mailing list