[PATCH] D70026: [cmake] Always build the libLLVM shared library

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 13:29:51 PST 2019


tstellar created this revision.
tstellar added reviewers: beanz, smeenai, compnerd, phosek.
Herald added subscribers: dexonsmith, mehdi_amini, mgorny.
Herald added a project: LLVM.

We discourage non-developers from using the BUILD_SHARED_LIBS option
and recommend using LLVM_BUILD_LLVM_DYLIB=ON for building LLVM as
a shared library.  We should make it as easy as possible for
users to build with our recommended configuration, so to help with that
this patch makes building libLLVM.so the default and removes the
LLVM_BUILD_LLVM_DYLIB option altogether.

Removing this option will help simplify the build system and also
help downstream users of LLVM, because they won't need to add
special logic to their own build systems to detect whether or not libLLVM
was built and installed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70026

Files:
  llvm/CMakeLists.txt
  llvm/docs/BuildingADistribution.rst
  llvm/docs/CMake.rst
  llvm/docs/GettingStarted.rst
  llvm/docs/ReleaseNotes.rst
  llvm/tools/llvm-shlib/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70026.228513.patch
Type: text/x-patch
Size: 7065 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191108/18aba64f/attachment.bin>


More information about the llvm-commits mailing list