[llvm-commits] [PATCH] Fix incorrect llvm-config output by adding support for OptionalLibrary to llvm-build

Malea, Daniel daniel.malea at intel.com
Mon Apr 9 10:23:07 PDT 2012


Hi all,

Please find the attached patch that addresses concerns identified by Alberto Magni in the llvm-dev thread:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-March/048521.html

The patch adds a new "type" of library (in llvm-build terms) named OptionalLibrary which must be explicitly enabled (with command-line flags to llvm-build) by the build system in order to be included in the auto-generated library dependency table used to build the llvm-config tool.

For end-users, this means the command "llvm-config -libs all" does not list libraries that are not built by the current configuration.

The proposed commit message is:

Make IntelJITEvents and OProfileJIT as optional libraries and add optional library support to the llvm-build tool:

-        Add new command line parameter to llvm-build: "--enable-optional-libraries"

-        Add handing of new llvm-build library type "OptionalLibrary"

-        Update Cmake and automake build systems to pass correct flags to llvm-build based on configuration

Thanks,
Dan

Daniel Malea daniel.malea at intel.com<mailto:daniel.malea at intel.com>
  Intel Embedded Computing, Debuggers & Libraries
  Intel Waterloo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120409/fb8d06e9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 001_add_optional_library_support_to_llvm_build.patch
Type: application/octet-stream
Size: 7707 bytes
Desc: 001_add_optional_library_support_to_llvm_build.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120409/fb8d06e9/attachment.obj>


More information about the llvm-commits mailing list