[PATCH][llvm-config] Print modules needed to build LLVM component

Alex Denisov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 21:39:45 PST 2016


This small patch prints module names for component’ dependencies.
It is very useful to have if you need to build just a subset of LLVM, e.g.:

$ make `llvm-config --modules mcjit`

Without this addition one can do:

$ make `llvm-config --libs mcjit | sed "s/-l//g"  | xargs make`

Which is less convenient.

P.S. Patch doesn’t contain any tests since I didn’t find tests for llvm-config. Is there any reason they are missing?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm_config_modules.patch
Type: application/octet-stream
Size: 2424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160115/970d62d5/attachment.obj>
-------------- next part --------------


--
AlexDenisov
Software Engineer, http://lowlevelbits.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160115/970d62d5/attachment.sig>


More information about the llvm-commits mailing list