[PATCH] D11835: Make `llvm-config` work when static versions of LLVM's components aren't installed.
Richard Diamond via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 08:32:25 PDT 2015
DiamondLovesYou created this revision.
DiamondLovesYou added reviewers: jfb, brad.king.
DiamondLovesYou added a subscriber: llvm-commits.
The following only applies if the following is true:
* `llvm-config` isn't inside the build tree (ie it's installed).
* LLVM is built with shared libs enabled.
* `llvm-config` finds the platform specific shared library file in the 'lib'
subfolder within the install root (ie it finds 'libLLVM-3.7.0svn.so' on
Linux).
If `llvm-config`, when visiting the components, finds a missing archive, it
will override the set of `RequiredLibs` to only include the shared library. Note
this means that if one has installed only select libraries in static form and
component X and it's deps are among them, `--libname X` will still print the
static archive names. I wouldn't recommending doing that (installing shared
library + only some static libraries) for obvious reasons, but I thought it
should be documented nonetheless.
http://reviews.llvm.org/D11835
Files:
bindings/ocaml/Makefile.ocaml
tools/llvm-config/BuildVariables.inc.in
tools/llvm-config/Makefile
tools/llvm-config/llvm-config.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11835.31514.patch
Type: text/x-patch
Size: 6819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150807/1232e44e/attachment.bin>
More information about the llvm-commits
mailing list