From 85d6c5b502d59342ebf95d16f30317a61f8b200f Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 11 Jul 2022 11:38:18 -0400 Subject: [PATCH] deps: fix V8 architecture detection for s390x/ppc64 --- deps/v8/include/v8config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deps/v8/include/v8config.h b/deps/v8/include/v8config.h index 714d8a6f057..6dfeb52b34b 100644 --- a/deps/v8/include/v8config.h +++ b/deps/v8/include/v8config.h @@ -674,6 +674,11 @@ V8 shared library set USING_V8_SHARED. #if __riscv_xlen == 64 #define V8_TARGET_ARCH_RISCV64 1 #endif +#elif defined(__s390__) +#define V8_TARGET_ARCH_S390 1 +#if defined(__s390x__) +#define V8_TARGET_ARCH_S390X 1 +#endif #else #error Target architecture was not detected as supported by v8 #endif @@ -770,7 +775,7 @@ V8 shared library set USING_V8_SHARED. #else #define V8_TARGET_LITTLE_ENDIAN 1 #endif -#elif __BIG_ENDIAN__ // FOR PPCGR on AIX +#elif defined(__BIG_ENDIAN__) // FOR PPCGR on AIX #define V8_TARGET_BIG_ENDIAN 1 #elif V8_TARGET_ARCH_PPC_LE #define V8_TARGET_LITTLE_ENDIAN 1