summaryrefslogtreecommitdiff
path: root/deps/zlib
Commit message (Collapse)AuthorAgeFilesLines
* build: remove broken x32 arch supportBen Noordhuis2022-02-111-2/+2
| | | | | | | | | | | | | | | | | I added support for x32 back in 2014 but it's been in a state of disrepair ever since, not in the least because it was never a fully supported architecture in upstream V8. V8 dropped x32 support entirely in or around 2018 so the removal from Node's build system is long overdue. Refs: https://github.com/nodejs/node/issues/40576 PR-URL: https://github.com/nodejs/node/pull/41905 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
* deps: suppress zlib compiler warningsDaniel Bevenius2021-10-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, there are a number of compilation warnings from zlib like the following one: ../deps/zlib/infback.c: In function ‘inflateBack’: ../deps/zlib/infback.c:479:25: warning: this statement may fall through [-Wimplicit-fallthrough=] 479 | state->mode = LEN; | ~~~~~~~~~~~~^~~~~ ../deps/zlib/infback.c:481:9: note: here 481 | case LEN: | ^~~~ In this case there is no break statement and the intention is to fall through: Tracev((stderr, "inflate: codes ok\n")); state->mode = LEN; case LEN: This commit adds -Wno-implicit-fallthrough' to zlib.gyp to suppress these warnings. PR-URL: https://github.com/nodejs/node/pull/40343 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* build: fix zlib inlining for IA-32raisinten2020-11-092-0/+2
| | | | | | | PR-URL: https://github.com/nodejs/node/pull/35679 Fixes: https://github.com/nodejs/node/issues/35629 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
* deps: fix typo in zlib.gyp that break arm-fpu-neon buildlucasg2020-10-191-1/+1
| | | | | | | | | PR-URL: https://github.com/nodejs/node/pull/35659 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
* deps: fix zlib compilation for CPUs without SIMD featuresAnna Henningsen2020-04-094-14/+20
| | | | | | | | | | | | | | | | | | | Fix the compile flags so that zlib can run on CPUs that do not have SSSE3/SSE4.2/etc. Do not compile zlib with flags that indicate that those features are available, and instead enable them selectively for functions that use them. There are probably better way to do this, e.g. through gyp file modifications as suggested in the issue. However, this patch should do just fine until that happens. Fixes: https://github.com/nodejs/node/issues/32553 PR-URL: https://github.com/nodejs/node/pull/32627 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
* deps: update zlib to upstream d7f3ca9Sam Roberts2020-02-241-0/+0
| | | | | | | | | Updated as described in doc/guides/maintaining-zlib.md. PR-URL: https://github.com/nodejs/node/pull/31800 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
* deps: move zlib maintenance info to guidesSam Roberts2020-02-241-6/+0
| | | | | | | | | | | deps/zlib/README.md is not part of the upstream zlib, it is a Node.js specific addition describing how to maintain zlib and should be in doc/guides/. PR-URL: https://github.com/nodejs/node/pull/31800 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
* deps: switch to chromium's zlib implementationBrian White2020-01-26262-39708/+11323
| | | | | | | | This implementation provides optimizations not included upstream. PR-URL: https://github.com/nodejs/node/pull/31201 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
* deps: fix CLEAR_HASH macro to be usable as a single statementSam Roberts2017-03-061-2/+5
| | | | | | | | | | | | | | | Apply unreleased (as of zlib v1.2.11) patch from upstream: - https://github.com/madler/zlib/commit/38e8ce32afbaa82f67d992b9f3056f281fe69259 Original commit message: Fix CLEAR_HASH macro to be usable as a single statement. As it is used in deflateParams(). PR-URL: https://github.com/nodejs/node/pull/11616 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* deps: upgrade zlib to 1.2.11Sam Roberts2017-02-2082-1720/+3202
| | | | | | PR-URL: https://github.com/nodejs/node/pull/10980 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
* deps: hide zlib internal symbolsSam Roberts2017-02-021-1/+1
| | | | | | | | | | Use HAVE_HIDDEN when compiling zlib so it's internal symbols have __attribute__((visibility ("hidden"))). PR-URL: https://github.com/nodejs/node/pull/11082 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Shigeki Ohtsu <ohtsu@iij.ad.jp>
* build: do not define ZLIB_CONSTBradley T. Hughes2016-10-181-4/+0
| | | | | | | | | | | | This define is not available in zlib prior to version 1.2.5.2. See https://github.com/nodejs/node/issues/9110 for details. Workaround the build breakage reported by casting away const in src/inspector_agent.cc instead. PR-URL: https://github.com/nodejs/node/pull/9122 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
* src: add /json/protocol endpoint to inspectorBen Noordhuis2016-09-231-0/+4
| | | | | | | | | | Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: https://github.com/nodejs/diagnostics/issues/52 PR-URL: https://github.com/nodejs/node/pull/7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
* deps: don't build minizip into zlibBert Belder2015-01-101-21/+0
| | | | | | | It's an optional extension that node/iojs doesn't use. PR-URL: https://github.com/iojs/io.js/pull/276 Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
* deps: don't set zlib's product_nameBert Belder2015-01-101-1/+0
| | | | | PR-URL: https://github.com/iojs/io.js/pull/276 Reviewed-by: Ben Noordhuis <info@bnoordhuis.nl>
* deps: fix zlib -Wimplicit-function-declarationBen Noordhuis2015-01-101-0/+1
| | | | | | | | | | | Build the bundled zlib with -DZ_HAVE_UNISTD_H to make the definition of close(), read() and other unistd.h functions available to gzread.c and gzwrite.c. It's kind of silly that we have to jump through hoops here because we never call any of the functions that do I/O directly, but at least it squelches the -Wimplicit-function-declaration warnings. PR-URL: https://github.com/iojs/io.js/pull/273 Reviewed-by: Bert Belder <bertbelder@gmail.com>
* deps: update zlib.gyp for zlib 1.2.8Shigeki Ohtsu2015-01-081-2/+13
| | | | | | | This adds the new gzip source files to the zlib.gyp The changes are derived from third_party/zlib/zlib.gyp in the Chromium repository. Reviewed-By: Bert Belder <bertbelder@gmail.com>
* deps: upgrade zlib to 1.2.8Shigeki Ohtsu2015-01-08209-3774/+46440
| | | | Reviewed-By: Bert Belder <bertbelder@gmail.com>
* zlib: compile without -ansiBen Noordhuis2011-10-281-0/+1
| | | | Source contains C++ / C99 comments, gcc in strict mode doesn't like that.
* Initial pass at zlib bindingsisaacs2011-09-1741-0/+16575