[PATCH] D15033: tools/llvm-config: improve shared library support

Andrew Wilkins via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 22:34:57 PST 2015


axw created this revision.
axw added reviewers: beanz, DiamondLovesYou.
axw added a subscriber: llvm-commits.

r252532 added support for reporting the monolithic library
when LLVM_BUILD_LLVM_DYLIB is used. This would only be done
if the individual components were not found, and the dynamic
library is found.

This diff extends this as follows:
 - If LLVM_LINK_LLVM_DYLIB is set, then prefer the shared
   library, even if all component libraries exist.
 - Two flags, --link-shared and --link-static are introduced
   to provide explicit guidance. If --link-shared is passed
   and the shared library does not exist, an error results.

Additionally, changed the expected shared library names from
(e.g.) LLVM-3.8.0 to LLVM-3.8. The former exists only in an
installation (and then only in CMake builds I think?), and not
in the build tree; this breaks usage of llvm-config during
builds, e.g. by llvm-go.

http://reviews.llvm.org/D15033

Files:
  tools/llvm-config/BuildVariables.inc.in
  tools/llvm-config/CMakeLists.txt
  tools/llvm-config/Makefile
  tools/llvm-config/llvm-config.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15033.41281.patch
Type: text/x-patch
Size: 5452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151127/8acdb2e2/attachment.bin>


More information about the llvm-commits mailing list