From 23873bfeb22b77bbbbddb425c3b87c59312554ee Mon Sep 17 00:00:00 2001 From: raisinten Date: Wed, 30 Dec 2020 20:13:15 +0530 Subject: [PATCH] build: enable sse4.2 in zlib Fixes: https://github.com/nodejs/node/issues/36678 --- deps/zlib/contrib/optimizations/insert_string.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/zlib/contrib/optimizations/insert_string.h b/deps/zlib/contrib/optimizations/insert_string.h index 69eee3dc9e91fc..e4d23434b21882 100644 --- a/deps/zlib/contrib/optimizations/insert_string.h +++ b/deps/zlib/contrib/optimizations/insert_string.h @@ -16,6 +16,9 @@ // clang-format off #if defined(CRC32_SIMD_SSE42_PCLMUL) /* Required to make MSVC bot build pass. */ + // TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, + // remove the next line and add `-msse4.2` to the command line options. + #pragma GCC target ("sse4.2") #include #if defined(__GNUC__) || defined(__clang__) #undef TARGET_CPU_WITH_CRC