[cmake-developers] Emit link commands to file?
Dave Gittins
dave.gittins at gmail.com
Sat Apr 9 05:58:07 EDT 2016
Enabling CMAKE_EXPORT_COMPILE_COMMANDS causes CMake to emit
compile_commands.json, to be picked up by llvm tools or other custom stuff.
This is very useful.
Can we also have a link_commands.json that records the link commands that
produce each target? That would allow a whole new set of validation to be
performed on the structure of the build and the linking arrangements.
I am trying to perform some of those validations on some large CMake
projects but it's hard at the moment - I either have to try to explore the
situation within CMake, or parse the generated build files, or parse the
verbose build output - none of which is working very well!
I am willing to try implementing this feature myself, if it's considered
potentially useful and doesn't overlap with ongoing work or something.
Any thoughts?
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160409/dcece8bf/attachment.html>
More information about the cmake-developers
mailing list