llvm-capstone/utils/bazel/third_party_build
Aaron Siddhartha Mondal a268127736
[bazel] Rework zlib dependency
Switches the library to use the zlib-ng implementation since the
original implementation is warning-incompatible with recent versions of clang.

Removes the wrapper logic for zlib in the bazel build and introduces new
logic to handle `LLVM_ENABLE_ZLIB`.

Removes the `BAZEL_LLVM_ZLIB_STRATEGY` environment variable and instead
introduces a boolean `--@llvm_zlib//:llvm_enable_zlib` flag which defaults
to true.

To migrate:
    * The previous "external" strategy is the default. May be explicitly
      enabled with `--@llvm_zlib//:llvm_enable_zlib=true`. For custom zlib
      variants you can use the BUILD file at `third_party_build/zlib.BUILD`
      as reference and adjust the `@llvm_zlib` archive in the `WORKSPACE`
      directly.
    * The previous "disable" strategy may be enabled with
      `--@llvm_zlib//:llvm_enable_zlib=false`.
    * The previous "system" strategy has been removed since it breaks
      hermeticity. If you need the "system" setup, use the "external"
      strategy and override the zlib dependency.

Addresses breakages of downstream projects using upstream clang and the
previously "external" zlib strategy (D141553).

Reviewed By: MaskRay, GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D143320
2023-05-19 23:41:07 +02:00
..
BUILD
gmp.BUILD [reland][libc][bazel] Add tests to the bazel build 2022-11-18 13:20:52 +00:00
mpfr.BUILD [reland][libc][bazel] Add tests to the bazel build 2022-11-18 13:20:52 +00:00
pfm.BUILD [bazel] Restore libpfm as a conditional dependency for exegesis. 2022-12-28 08:13:20 -08:00
vulkan_headers.BUILD
zlib-ng.BUILD [bazel] Rework zlib dependency 2023-05-19 23:41:07 +02:00
zstd.BUILD [bazel] Port zstd support 2023-03-29 01:29:35 +02:00