<div dir="ltr">add_custom_command(DEPFILE) is available with CMake>=3.7 and generator is Ninja.<div>I have a patch for this and this is working fine with "*-tblgen -d"<br><div><br></div><div>This can reduce edges between generated.inc and *.td(s), though, I think this won't be so useful to reduce turn-around build time.</div></div><div><br></div><div>Thanks, Takumi</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 31, 2017 at 8:00 AM Matthias Braun via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On May 30, 2017, at 3:54 PM, Pete Cooper via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
><br>
><br>
>> On May 30, 2017, at 3:52 PM, Joerg Sonnenberger <<a href="mailto:joerg@bec.de" target="_blank">joerg@bec.de</a>> wrote:<br>
>><br>
>> On Tue, May 30, 2017 at 03:49:38PM -0700, Pete Cooper via llvm-dev wrote:<br>
>>> Aw, but i had a list of issues, such as:<br>
>>> - tablegen doesn’t generate .d files<br>
>><br>
>> Actually, it does if asked to.<br>
> Oh, thanks. Thats good to know.<br>
><br>
> I don’t know if ninja uses the .d as the source of real deps, or if it still includes those deps emitted by CMake. Will take a look.<br>
ninja certainly supports reading dependencies from .d files. I think the actual problem here is that there is no way to have cmake's add_custom_command() generate the necessary ninja depfile/deps directives.<br>
<br>
- Matthias<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>