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

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 20:16:34 PST 2019


tstellar marked an inline comment as done.
tstellar added inline comments.


================
Comment at: llvm/CMakeLists.txt:573-577
+  set(LLVM_BUILD_LLVM_DYLIB OFF)
 else()
   option(LLVM_LINK_LLVM_DYLIB "Link tools against the libllvm dynamic library" OFF)
   option(LLVM_BUILD_LLVM_C_DYLIB "Build libllvm-c re-export library (Darwin only)" OFF)
+  set(LLVM_BUILD_LLVM_DYLIB ON)
----------------
smeenai wrote:
> tstellar wrote:
> > @beanz Does setting the variables here override the cache variables?
> Yup, setting the variable here will override the cached value. Any reason to prefer this to just removing all uses of the variable though?
I thought it would be cleaner to keep the variable than to replace it with if (MSVC) everywhere.  


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70026/new/

https://reviews.llvm.org/D70026





More information about the llvm-commits mailing list