Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: src/base/build_config.h

Issue 2809963004: For building v8 using gn on aix_ppc64, linux_s390x and linux_ppc64. (Closed)
Patch Set: rebased, uses host_byteorder.gni now Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | tools/get_byteorder.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/build_config.h
diff --git a/src/base/build_config.h b/src/base/build_config.h
index d113c2a0fcc60544bb41872078eced1193848c92..0374f0fc2553a9ff299e930cd53f333a8b59e445 100644
--- a/src/base/build_config.h
+++ b/src/base/build_config.h
@@ -35,7 +35,7 @@
#define V8_HOST_ARCH_32_BIT 1
#elif defined(__PPC__) || defined(_ARCH_PPC)
#define V8_HOST_ARCH_PPC 1
-#if defined(__PPC64__) || defined(_ARCH_PPC64)
+#if defined(__PPC64__) || defined(_ARCH_PPC64) || defined(_ARCH_PPCGR)
#define V8_HOST_ARCH_64_BIT 1
#else
#define V8_HOST_ARCH_32_BIT 1
@@ -91,6 +91,8 @@
#define V8_TARGET_ARCH_MIPS64 1
#elif defined(__MIPSEB__) || defined(__MIPSEL__)
#define V8_TARGET_ARCH_MIPS 1
+#elif defined(_ARCH_PPC)
+#define V8_TARGET_ARCH_PPC 1
#else
#error Target architecture was not detected as supported by v8
#endif
@@ -181,6 +183,8 @@
#endif
#elif V8_TARGET_ARCH_X87
#define V8_TARGET_LITTLE_ENDIAN 1
+#elif __BIG_ENDIAN__ // FOR PPCGR on AIX
+#define V8_TARGET_BIG_ENDIAN 1
#elif V8_TARGET_ARCH_PPC_LE
#define V8_TARGET_LITTLE_ENDIAN 1
#elif V8_TARGET_ARCH_PPC_BE
« no previous file with comments | « BUILD.gn ('k') | tools/get_byteorder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698