node/deps/zlib
Anna Henningsen dccdc51788
deps: fix zlib compilation for CPUs without SIMD features
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>
2020-04-09 21:41:02 +02:00
..
contrib deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
google deps: update zlib to upstream d7f3ca9 2020-02-24 11:52:55 -08:00
patches deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
win32 deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
BUILD.gn deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
LICENSE deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
OWNERS deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
README.chromium deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
adler32.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
adler32_simd.c deps: fix zlib compilation for CPUs without SIMD features 2020-04-09 21:41:02 +02:00
adler32_simd.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
arm_features.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
arm_features.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
chromeconf.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
compress.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
crc32.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
crc32.h
crc32_simd.c deps: fix zlib compilation for CPUs without SIMD features 2020-04-09 21:41:02 +02:00
crc32_simd.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
crc_folding.c deps: fix zlib compilation for CPUs without SIMD features 2020-04-09 21:41:02 +02:00
deflate.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
deflate.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
fill_window_sse.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
gzclose.c
gzguts.h deps: upgrade zlib to 1.2.11 2017-02-20 08:45:48 -08:00
gzlib.c deps: upgrade zlib to 1.2.11 2017-02-20 08:45:48 -08:00
gzread.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
gzwrite.c deps: upgrade zlib to 1.2.11 2017-02-20 08:45:48 -08:00
infback.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
inffast.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
inffast.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
inffixed.h
inflate.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
inflate.h deps: upgrade zlib to 1.2.11 2017-02-20 08:45:48 -08:00
inftrees.c deps: upgrade zlib to 1.2.11 2017-02-20 08:45:48 -08:00
inftrees.h
simd_stub.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
trees.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
trees.h
uncompr.c deps: upgrade zlib to 1.2.11 2017-02-20 08:45:48 -08:00
x86.c deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
x86.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
zconf.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
zlib.gyp deps: fix zlib compilation for CPUs without SIMD features 2020-04-09 21:41:02 +02:00
zlib.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00
zutil.c deps: upgrade zlib to 1.2.11 2017-02-20 08:45:48 -08:00
zutil.h deps: switch to chromium's zlib implementation 2020-01-26 18:47:02 -05:00

README.chromium

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

Name: zlib
Short Name: zlib
URL: http://zlib.net/
Version: 1.2.11
Security Critical: yes
License: Custom license
License File: LICENSE
License Android Compatible: yes

Description:
"A massively spiffy yet delicately unobtrusive compression library."

zlib is a free, general-purpose, legally unencumbered lossless data-compression
library. zlib implements the "deflate" compression algorithm described by RFC
1951, which combines the LZ77 (Lempel-Ziv) algorithm with Huffman coding. zlib
also implements the zlib (RFC 1950) and gzip (RFC 1952) wrapper formats.

Local Modifications:
 - Only source code from the zlib distribution used to build the zlib and
   minizip libraries are present. Many other files have been omitted. Only *.c
   and *.h files from the upstream root directory and contrib/minizip were
   imported.
 - The contents of the google directory are original Chromium-specific
   additions.
 - Added chromeconf.h
 - Plus the changes in 'patches' folder.
 - Code in contrib/ other than contrib/minizip was added to match zlib's
   contributor layout.