Skip to content

Commit 23873bf

Browse files
committed
build: enable sse4.2 in zlib
Fixes: #36678
1 parent 34afcc6 commit 23873bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/zlib/contrib/optimizations/insert_string.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
// clang-format off
1717
#if defined(CRC32_SIMD_SSE42_PCLMUL)
1818
/* Required to make MSVC bot build pass. */
19+
// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands,
20+
// remove the next line and add `-msse4.2` to the command line options.
21+
#pragma GCC target ("sse4.2")
1922
#include <smmintrin.h>
2023
#if defined(__GNUC__) || defined(__clang__)
2124
#undef TARGET_CPU_WITH_CRC

0 commit comments

Comments
 (0)