[miniz] Bump miniz version to 3.0.2 and add patch for zip64 (#140041)

Summary:
Bump miniz version from 2.1.0 to 3.0.2 and apply these patches:

* #79636 patches internal BUCK and bazel build
* #138959 adds `bool compute_crc32` argument
* miniz PR: https://github.com/richgel999/miniz/pull/324 to support
  zip64

Anyone bumping miniz version again, please apply these patches as well.

Test Plan:
Rely on unit test

Imported from OSS

Differential Revision: D65586230

Pull Request resolved: https://github.com/pytorch/pytorch/pull/140041
Approved by: https://github.com/mikaylagawarecki
This commit is contained in:
Mengwei Liu
2024-11-09 00:13:16 +00:00
committed by PyTorch MergeBot
parent 1400fedf76
commit a02e88d19c
18 changed files with 701 additions and 354 deletions

View File

@ -191,9 +191,11 @@ cxx_library(
cxx_library(
name = "miniz",
srcs = ["miniz-2.1.0/miniz.c"],
srcs = [
"miniz-3.0.2/miniz.c",
],
header_namespace = "",
exported_headers = {"miniz.h": "miniz-2.1.0/miniz.h"},
exported_headers = {"miniz.h": "miniz-3.0.2/miniz.h"},
exported_preprocessor_flags = [
"-DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS",
],