From 6253320cd0f5c091f96252c863d59b2207725a62 Mon Sep 17 00:00:00 2001 From: Frank Emrich Date: Fri, 19 Feb 2021 14:05:26 +0100 Subject: [PATCH] [dict-proto] Fix cross platform build failure caused by swiss tables This fixes a build failure when compiling swiss-hash-table-helpers.h on an SSE platform for a non-SSE target. Change-Id: Ifc9bfc6b31d84d0e5dcc544a8eee8d6ea6e0cd12 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2704675 Reviewed-by: Igor Sheludko Commit-Queue: Frank Emrich Cr-Commit-Position: refs/heads/master@{#72868} --- src/objects/swiss-hash-table-helpers.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/objects/swiss-hash-table-helpers.h b/src/objects/swiss-hash-table-helpers.h index a63a66bd96..a715588423 100644 --- a/src/objects/swiss-hash-table-helpers.h +++ b/src/objects/swiss-hash-table-helpers.h @@ -44,7 +44,8 @@ #endif #ifndef SWISS_TABLE_HAVE_SSSE3 -#ifdef __SSSE3__ +#if defined(__SSSE3__) && \ + (defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_X64)) #define SWISS_TABLE_HAVE_SSSE3 1 #else #define SWISS_TABLE_HAVE_SSSE3 0