aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorCole Kissane <cole.kissane@gmail.com>2022-07-13 19:06:26 -0700
committerCole Kissane <cole.kissane@gmail.com>2022-07-13 19:06:27 -0700
commitcef07169ec9f46fd25291a3218cf12bef324ea0c (patch)
tree2286d3caed36227224723314bca1392c4da60745 /utils
parentee37ae91b6ee5938b2460cd12c547449bd946b1e (diff)
[llvm] add zstd to `llvm::compression` namespace
- add `FindZSTD.cmake` - 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` Reviewed By: leonardchan, MaskRay Differential Revision: https://reviews.llvm.org/D128465
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm_configs/llvm-config.h.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/bazel/llvm_configs/llvm-config.h.cmake b/utils/bazel/llvm_configs/llvm-config.h.cmake
index 3355f1233720..96fbe6f771d2 100644
--- a/utils/bazel/llvm_configs/llvm-config.h.cmake
+++ b/utils/bazel/llvm_configs/llvm-config.h.cmake
@@ -95,6 +95,9 @@
/* Define if zlib compression is available */
#cmakedefine01 LLVM_ENABLE_ZLIB
+/* Define if zstd compression is available */
+#cmakedefine01 LLVM_ENABLE_ZSTD
+
/* Define if LLVM was built with a dependency to the libtensorflow dynamic library */
#cmakedefine LLVM_HAVE_TF_API