[PATCH] D13198: Fix `llvm-config` to adapt to the install environment.

Richard Diamond via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 00:25:18 PDT 2015


DiamondLovesYou created this revision.
DiamondLovesYou added reviewers: brad.king, jfb.
DiamondLovesYou added a subscriber: llvm-commits.
DiamondLovesYou set the repository for this revision to rL LLVM.

This patch does a couple of things:

  - Adds a new argument `--shared-mode` which accepts a list of components and prints whether or not the provided components need to be linked statically or shared.
  - Fixes `--libnames` when CMake BUILD_SHARED_LIBS is used.
  - Fixes `--libnames`, `--libs`, and `--libfiles` for dylib when static components aren't installed.
  - Fixes `--libnames`, `--libs`, `--libfiles`, and `--components` to use LLVM_DYLIB_COMPONENTS as the component manifest for dylib linking.
  - Uses the host platform's usual convention for filename extensions and such, instead of always defaulting to Unix-izms.

Because I don't own a Mac, I am not able to test the Mac platform dependent stuff locally. If someone would be willing to run a build for me on their machine (unless there's a better option), I'd appreciate it.

Repository:
  rL LLVM

http://reviews.llvm.org/D13198

Files:
  bindings/ocaml/Makefile.ocaml
  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: D13198.35817.patch
Type: text/x-patch
Size: 16792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150927/c24dbbd5/attachment.bin>


More information about the llvm-commits mailing list