Skip to content

Commit

Permalink
build: enable sse4.2 in zlib
Browse files Browse the repository at this point in the history
Fixes: #36678
  • Loading branch information
RaisinTen committed Dec 31, 2020
1 parent 34afcc6 commit 23873bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/zlib/contrib/optimizations/insert_string.h
Expand Up @@ -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 <smmintrin.h>
#if defined(__GNUC__) || defined(__clang__)
#undef TARGET_CPU_WITH_CRC
Expand Down

0 comments on commit 23873bf

Please sign in to comment.