ZSTD dependency must be be enabled at the build system level: pass LLVM_ENABLE_ZSTD=TRUE to cmake invocation. This is also important in order to support ZSTD compressed debug info, as produced with “-gz=zstd”.