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

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 18 22:55:48 PST 2016


I don't think llvm-config is the right tool here.

llvm-config is primarily for inspecting the installation of LLVM, not the
internals of the build system structure. Those are essentially
implementation details.

I'm also not sure how compelling the motivation for this really is.
Incremental rebuild usually makes this kind of thing straight forward?

On Mon, Jan 18, 2016 at 3:16 AM Alex Denisov via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> CC’ing Chandler Carruth due to CODE_OWNERS.txt
>
> --
> AlexDenisov
> Software Engineer, http://lowlevelbits.org
>
> > On 15 Jan 2016, at 06:39, Alex Denisov <1101.debian at gmail.com> wrote:
> >
> > 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?
> >
> > <llvm_config_modules.patch>
> >
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160119/f397ae0e/attachment.html>


More information about the llvm-commits mailing list