[PATCH] D132870: tweak zstd behavior in cmake and llvm config for better testing

Cole Kissane via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 11:15:11 PDT 2022


ckissane added inline comments.


================
Comment at: llvm/cmake/modules/LLVMConfig.cmake.in:78
 if(LLVM_ENABLE_ZSTD)
-  set(zstd_ROOT @zstd_ROOT@)
+  set(zstd_DIR @zstd_DIR@)
   find_package(zstd)
----------------
ckissane wrote:
> ckissane wrote:
> > phosek wrote:
> > > I think it should be possible to omit this line altogether, this shouldn't be needed (zlib above is a special case).
> > unfortunately this is the critical change
> without this:
> the builders that set custom zstd_DIR when building clang will build fine
> but tests that run then using the llvmconfig vars will fail to find zstd
apparently warning which this fixes can be ignored anyway... so removing for now...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132870



More information about the llvm-commits mailing list