[bazel] Port zstd support
authorAaron Siddhartha Mondal <aaron@eomii.org>
Tue, 28 Mar 2023 23:29:05 +0000 (01:29 +0200)
committerAaron Siddhartha Mondal <aaron@eomii.org>
Tue, 28 Mar 2023 23:29:35 +0000 (01:29 +0200)
commit75d2032e9ba39b3ae0da17f8cd27d66030bf901c
treeff2d7ad00c9499eede1dcdc6f2cb3c8763c53b66
parent5c2ae37bbeff948540712bf02ac3eb5aa0b0d43a
[bazel] Port zstd support

Originally added in D128465. Used by `llvm:Support` and `lld:ELF`.

Enabled by default. Disable with `--@llvm_zstd//:llvm_enable_zstd=false`.

Reviewed By: MaskRay, GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D143344
utils/bazel/WORKSPACE
utils/bazel/llvm-project-overlay/lld/BUILD.bazel
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
utils/bazel/third_party_build/zstd.BUILD [new file with mode: 0644]