Skip to content

Commit

Permalink
deps: fix V8 architecture detection for s390x/ppc64
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlau committed Jul 11, 2022
1 parent f316cfc commit 85d6c5b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deps/v8/include/v8config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 85d6c5b

Please sign in to comment.