zlib: disable CRC32 SIMD optimization
It seems that the optimization causes memory corruption. Disable it until the issue is fixed upstream. Fixes: https://github.com/nodejs/node/issues/45268 PR-URL: https://github.com/nodejs/node/pull/49511 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
parent
705e623ac4
commit
ae115d68e0
58
deps/zlib/zlib.gyp
vendored
58
deps/zlib/zlib.gyp
vendored
@ -107,33 +107,33 @@
|
||||
}],
|
||||
],
|
||||
}, # zlib_arm_crc32
|
||||
{
|
||||
'target_name': 'zlib_crc32_simd',
|
||||
'type': 'static_library',
|
||||
'conditions': [
|
||||
['OS!="win" or llvm_version!="0.0"', {
|
||||
'cflags': [
|
||||
'-msse4.2',
|
||||
'-mpclmul',
|
||||
],
|
||||
'xcode_settings': {
|
||||
'OTHER_CFLAGS': [
|
||||
'-msse4.2',
|
||||
'-mpclmul',
|
||||
],
|
||||
},
|
||||
}]
|
||||
],
|
||||
'defines': [ 'CRC32_SIMD_SSE42_PCLMUL' ],
|
||||
'include_dirs': [ '<(ZLIB_ROOT)' ],
|
||||
'direct_dependent_settings': {
|
||||
'defines': [ 'CRC32_SIMD_SSE42_PCLMUL' ],
|
||||
'include_dirs': [ '<(ZLIB_ROOT)' ],
|
||||
},
|
||||
'sources': [
|
||||
'<!@pymod_do_main(GN-scraper "<(ZLIB_ROOT)/BUILD.gn" "\\"zlib_crc32_simd\\".*?sources = ")',
|
||||
],
|
||||
}, # zlib_crc32_simd
|
||||
# {
|
||||
# 'target_name': 'zlib_crc32_simd',
|
||||
# 'type': 'static_library',
|
||||
# 'conditions': [
|
||||
# ['OS!="win" or llvm_version!="0.0"', {
|
||||
# 'cflags': [
|
||||
# '-msse4.2',
|
||||
# '-mpclmul',
|
||||
# ],
|
||||
# 'xcode_settings': {
|
||||
# 'OTHER_CFLAGS': [
|
||||
# '-msse4.2',
|
||||
# '-mpclmul',
|
||||
# ],
|
||||
# },
|
||||
# }]
|
||||
# ],
|
||||
# 'defines': [ 'CRC32_SIMD_SSE42_PCLMUL' ],
|
||||
# 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
||||
# 'direct_dependent_settings': {
|
||||
# 'defines': [ 'CRC32_SIMD_SSE42_PCLMUL' ],
|
||||
# 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
||||
# },
|
||||
# 'sources': [
|
||||
# '<!@pymod_do_main(GN-scraper "<(ZLIB_ROOT)/BUILD.gn" "\\"zlib_crc32_simd\\".*?sources = ")',
|
||||
# ],
|
||||
# }, # zlib_crc32_simd
|
||||
{
|
||||
'target_name': 'zlib_inflate_chunk_simd',
|
||||
'type': 'static_library',
|
||||
@ -208,7 +208,9 @@
|
||||
['target_arch in "ia32 x64" and OS!="ios"', {
|
||||
'dependencies': [
|
||||
'zlib_adler32_simd',
|
||||
'zlib_crc32_simd',
|
||||
# Disabled due to memory corruption.
|
||||
# See https://github.com/nodejs/node/issues/45268.
|
||||
# 'zlib_crc32_simd',
|
||||
],
|
||||
'defines': [ 'DEFLATE_SLIDE_HASH_SSE2' ],
|
||||
'conditions': [
|
||||
|
Loading…
x
Reference in New Issue
Block a user