<div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">On Wed, Jun 20, 2012 at 9:59 PM, Bertjan Broeksema <span dir="ltr"><<a href="mailto:broeksema@kde.org" target="_blank">broeksema@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi List,<br>
<br>
Crossposting from cmake.devel. I found out that a particular feature in<br>
CMake was contributed by the clang community. I'm working on a small tool<br>
which requires the same information + some additional. That is, in its<br>
currents form it only stores the compile commands and not the link commands.<br>
Is this something the clang community would be interested in too (for<br>
tooling at the link level, if such is planned)?<br>
<br>
The question would be if the link commands would be stored in the same file,<br>
resulting in a "build database" in stead of a compile database or in a<br>
separate file. Any input on this topic is welcome.<br></blockquote><div><br></div><div>The reason why you might want a slightly diffferent file format is the key.</div><div>For the compilation database, the usual question is "how do I parse this TU?". What would you key on for link commands? The output file?</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Cheers,<br>
<br>
Bertjan<br>
<br>
== Original message ==<br>
<br>
I recently found out about the CMAKE_EXPORT_COMPILE_COMMANDS option while<br>
getting myself familiar with clang. In a tool [1] I'm working on (or<br>
rather,<br>
start to work again) I need something similar.<br>
<br>
The current CMAKE_EXPORT_COMPILE_COMMANDS option only exports compile<br>
commands (as its name suggest). However, in my tool I build and visualize<br>
the full graph (i.e. source, headers, objectfiles, libaries). For this I<br>
also would need the link commands. Currently I've a wrapper around the C++<br>
compiler, which works fine, but after having seen this option I realized<br>
that this would be way more convenient. Is it possible to get a similar<br>
option for exporting link commands or perhaps both:<br>
<br>
CMAKE_EXPORT_LINK_COMMANDS<br>
CMAKE_EXPORT_COMPILE_AND_LINK_COMMANDS<br>
<br>
I'm willing to work on a patch, given that a) the option has a change to<br>
get<br>
included, b) I get some pointers on where to start to make it happen.<br>
<br>
Cheers,<br>
<br>
Bertjan<br>
<br>
<br>
[1] <a href="https://gitorious.org/cpp-dependency-analyzer/cpp-dependency-analyzer" target="_blank">https://gitorious.org/cpp-dependency-analyzer/cpp-dependency-analyzer</a><br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></font></div>