| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
build/BUILD.zlib overlays Chromium zlib with ISA-specific SIMD defines and deps, but several select()s only list x86_64 and aarch64. Bazel analysis then fails on any other CPU because those configurable attributes have no matching condition. The SIMD libraries already no-op when their ADLER32_SIMD_*, INFLATE_CHUNK_SIMD_*, CRC32_* and DEFLATE_SLIDE_HASH_* defines are unset: the corresponding C files are empty translation units or the generic zlib sources are used instead. Add "//conditions:default": [] so those selects resolve, and skip the x86/ARM-only CRC SIMD deps on other CPUs. This does not enable RISC-V Vector (or other) zlib optimizations; it only unblocks a portable scalar build.
|
All contributors have signed the CLA ✍️ ✅ |
Sorry, something went wrong.
|
I have read the CLA Document and I hereby sign the CLA |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
build/BUILD.zlib overlays Chromium zlib with ISA-specific SIMD defines and deps, but several select()s only list x86_64 and aarch64. Bazel analysis then fails on any other CPU because those configurable attributes have no matching condition.
The SIMD libraries already no-op when their ADLER32_SIMD_, INFLATE_CHUNK_SIMD_, CRC32_* and DEFLATE_SLIDE_HASH_* defines are unset: the corresponding C files are empty translation units or the generic zlib sources are used instead. Add "//conditions:default": [] so those selects resolve, and skip the x86/ARM-only CRC SIMD deps on other CPUs.
This does not enable RISC-V Vector (or other) zlib optimizations; it only unblocks a portable scalar build.