[PATCH] Adding llvm-shlib to CMake build system with a few new bells and whistles

Chris Bieneman beanz at apple.com
Tue Oct 21 12:26:36 PDT 2014


This patch adds a new CMake build setting LLVM_BUILD_LLVM_DYLIB, which defaults to OFF. When set to ON, this will generate a shared library containing most of LLVM. The contents of the shared library can be overriden by specifying LLVM_DYLIB_COMPONENTS. LLVM_DYLIB_COMPONENTS can be set to a semi-colon delimited list of any LLVM components that you llvm-config can resolve.

On Windows, unless you are using Cygwin, you must specify an explicit symbol export file using LLVM_EXPORTED_SYMBOL_FILE. On Cygwin and all unix-like platforms if you do not specify LLVM_EXPORTED_SYMBOL_FILE, an export file containing only the LLVM C API will be auto-generated from the list of LLVM components specified in LLVM_DYLIB_COMPONENTS.

http://reviews.llvm.org/D5890

Files:
  CMakeLists.txt
  tools/CMakeLists.txt
  tools/llvm-shlib/CMakeLists.txt
  tools/llvm-shlib/libllvm.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5890.15202.patch
Type: text/x-patch
Size: 4400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141021/cab6ea33/attachment.bin>


More information about the llvm-commits mailing list