add LLVM_PREFER_STATIC_ZSTD (default TRUE) cmake config flag
(compression test seems to fail for shared zstd on windows, note that zstd multithread is by default disabled in the static build so it may be a hidden variable)
propagate variable zstd_DIR in LLVMConfig.cmake.in
fix llvm-config CMakeLists.txt behavior for absolute libs windows
get zstd lib name
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/cmake/modules/LLVMConfig.cmake.in | ||
---|---|---|
77–78 | unfortunately this is the critical change |
- remove nit
llvm/cmake/modules/LLVMConfig.cmake.in | ||
---|---|---|
77–78 | apparently warning which this fixes can be ignored anyway... so removing for now... |
LGTM
llvm/lib/Support/CMakeLists.txt | ||
---|---|---|
31–43 | I'd prefer a slightly simpler strategy which is to follow what linkers do (and what we also sometimes use elsewhere in the build): try shared first, if it doesn't exist use static plus provide a flag to skip the shared library search. |
I think it should be possible to omit this line altogether, this shouldn't be needed (zlib above is a special case).