removes LLVM_PREFER_STATIC_ZSTD in favor of using a LLVM_USE_STATIC_ZSTD
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I'd prefer LLVM_USE_STATIC_ZSTD name I suggested in D132870. <PROJECT>_USE_STATIC_<DEPENDENCY> is a common convention we already use elsewhere in LLVM. I'd prefer following the existing conventions rather than inventing a new approach for the sake of maintainability.
llvm/lib/Support/CMakeLists.txt | ||
---|---|---|
27–28 | I'd delete this line altogether. In CMake, you don't need to define variables before you use them and there's no suitable default value here. |
Comment Actions
This change broke the libclc CI job we have for the release branch on MacOS. It looks like the root cause is a change in the output of llvm-config:
Before: -lm;-lz;/usr/local/lib/libzstd.1.5.2.dylib;-lcurses;-lxml2
After: -lm;-lz;-lzstd;-lcurses;-lxml2
I'd delete this line altogether. In CMake, you don't need to define variables before you use them and there's no suitable default value here.