From c5e62b42f05cc7e3fe0e2617871f56b62d81bf68 Mon Sep 17 00:00:00 2001 From: raisinten Date: Fri, 1 Jan 2021 19:47:07 +0530 Subject: [PATCH] build: enable ssse3 in zlib Fixes: https://github.com/nodejs/node/issues/36678 --- deps/zlib/adler32_simd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deps/zlib/adler32_simd.c b/deps/zlib/adler32_simd.c index f8b07297b93840..1cd571bda52f2a 100644 --- a/deps/zlib/adler32_simd.c +++ b/deps/zlib/adler32_simd.c @@ -54,6 +54,9 @@ #define __attribute__() #endif +// TODO(raisinten): When https://github.com/nodejs/node/pull/33044 lands, +// remove the next line and add `-mssse3` to the command line options. +#pragma GCC target ("ssse3") #include __attribute__((target("ssse3")))