[PATCH] D44391: Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake

Evangelos Foutras via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 15:40:25 PDT 2018


foutrelis added a comment.

One more observation: It might be preferable to avoid defining `set(LLVM_DYLIB_COMPONENTS all)` in non-DYLIB builds. It prevents `llvm_config(foo USE_SHARED ...)` from opportunistically linking to the DYLIB while still having the static libraries as a fallback.

I really want projects linking to LLVM to be able to use `llvm_config(foo USE_SHARED ...)` and not worry about the detail of whether it's a static or dylib-enabled build.


Repository:
  rL LLVM

https://reviews.llvm.org/D44391





More information about the llvm-commits mailing list