[all-commits] [llvm/llvm-project] e939bf: [llvm] add zstd to `llvm::compression` namespace

Cole Kissane via All-commits all-commits at lists.llvm.org
Tue Jul 19 10:54:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e939bf67e34037970192fa90ad22ab7628f5de33
      https://github.com/llvm/llvm-project/commit/e939bf67e34037970192fa90ad22ab7628f5de33
  Author: Cole Kissane <cole.kissane at gmail.com>
  Date:   2022-07-19 (Tue, 19 Jul 2022)

  Changed paths:
    M llvm/CMakeLists.txt
    M llvm/cmake/config-ix.cmake
    M llvm/cmake/modules/LLVMConfig.cmake.in
    M llvm/include/llvm/Config/llvm-config.h.cmake
    M llvm/include/llvm/Support/Compression.h
    M llvm/lib/Support/CMakeLists.txt
    M llvm/lib/Support/Compression.cpp
    M llvm/test/lit.site.cfg.py.in
    M llvm/unittests/Support/CompressionTest.cpp
    M utils/bazel/llvm_configs/llvm-config.h.cmake

  Log Message:
  -----------
  [llvm] add zstd to `llvm::compression` namespace

- add zstd to `llvm::compression` namespace
- add a CMake option `LLVM_ENABLE_ZSTD` with behavior mirroring that of `LLVM_ENABLE_ZLIB`
- add tests for zstd to `llvm/unittests/Support/CompressionTest.cpp`
- debian users should install libzstd when using `LLVM_ENABLE_ZSTD=FORCE_ON` from source due to this bug https://bugs.launchpad.net/ubuntu/+source/libzstd/+bug/1941956

Reviewed By: leonardchan, MaskRay

Differential Revision: https://reviews.llvm.org/D128465




More information about the All-commits mailing list