From ab587ca46b49190564a4d808115af3a9b5ba71b6 Mon Sep 17 00:00:00 2001 From: raisinten Date: Fri, 16 Oct 2020 17:10:16 +0530 Subject: [PATCH] build: fix zlib inlining for IA-32 PR-URL: https://github.com/nodejs/node/pull/35679 Fixes: https://github.com/nodejs/node/issues/35629 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott --- deps/zlib/contrib/optimizations/chunkcopy.h | 1 + deps/zlib/fill_window_sse.c | 1 + 2 files changed, 2 insertions(+) diff --git a/deps/zlib/contrib/optimizations/chunkcopy.h b/deps/zlib/contrib/optimizations/chunkcopy.h index 38ba0ed8a27f45..8bcdadad05a817 100644 --- a/deps/zlib/contrib/optimizations/chunkcopy.h +++ b/deps/zlib/contrib/optimizations/chunkcopy.h @@ -29,6 +29,7 @@ #include typedef uint8x16_t z_vec128i_t; #elif defined(INFLATE_CHUNK_SIMD_SSE2) +#pragma GCC target ("sse2") #include typedef __m128i z_vec128i_t; #else diff --git a/deps/zlib/fill_window_sse.c b/deps/zlib/fill_window_sse.c index ed1e5d1d6735b1..e19154bc14d238 100644 --- a/deps/zlib/fill_window_sse.c +++ b/deps/zlib/fill_window_sse.c @@ -9,6 +9,7 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ +#pragma GCC target ("sse2") #include #include "deflate.h"