Index: build/toolchain.gypi |
diff --git a/build/toolchain.gypi b/build/toolchain.gypi |
index ac10065601a0c1e426e69a2fcde7307cc8b9648c..7e4d5bea4b38ac8d2b4369e3e86c9905ccd0c800 100644 |
--- a/build/toolchain.gypi |
+++ b/build/toolchain.gypi |
@@ -32,6 +32,7 @@ |
'msvs_use_common_release': 0, |
'clang%': 0, |
'v8_target_arch%': '<(target_arch)', |
+ 'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")', |
# Native Client builds currently use the V8 ARM JIT and |
# arm/simulator-arm.cc to defer the significant effort required |
# for NaCl JIT support. The nacl_target_arch variable provides |
@@ -91,7 +92,9 @@ |
'android_webview_build%': '<(android_webview_build)', |
}, |
'conditions': [ |
- ['host_arch=="ia32" or host_arch=="x64" or clang==1', { |
+ ['host_arch=="ia32" or host_arch=="x64" or \ |
+ host_arch=="ppc" or host_arch=="ppc64" or \ |
+ clang==1', { |
'variables': { |
'host_cxx_is_biarch%': 1, |
}, |
@@ -101,6 +104,7 @@ |
}, |
}], |
['target_arch=="ia32" or target_arch=="x64" or target_arch=="x87" or \ |
+ target_arch=="ppc" or target_arch=="ppc64" or \ |
clang==1', { |
'variables': { |
'target_cxx_is_biarch%': 1, |
@@ -250,6 +254,28 @@ |
'V8_TARGET_ARCH_ARM64', |
], |
}], |
+ ['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', { |
+ 'defines': [ |
+ 'V8_TARGET_ARCH_PPC', |
+ ], |
+ 'conditions': [ |
+ ['v8_target_arch=="ppc64"', { |
+ 'defines': [ |
+ 'V8_TARGET_ARCH_PPC64', |
+ ], |
+ }], |
+ ['v8_host_byteorder=="little"', { |
+ 'defines': [ |
+ 'V8_TARGET_ARCH_PPC_LE', |
+ ], |
+ }], |
+ ['v8_host_byteorder=="big"', { |
+ 'defines': [ |
+ 'V8_TARGET_ARCH_PPC_BE', |
+ ], |
+ }], |
+ ], |
+ }], # ppc |
['v8_target_arch=="ia32"', { |
'defines': [ |
'V8_TARGET_ARCH_IA32', |
@@ -783,11 +809,11 @@ |
}, |
}, |
}], |
- ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
+ ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
(v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
v8_target_arch=="x87" or v8_target_arch=="mips" or \ |
- v8_target_arch=="mipsel")', { |
+ v8_target_arch=="mipsel" or v8_target_arch=="ppc")', { |
'target_conditions': [ |
['_toolset=="host"', { |
'conditions': [ |
@@ -820,7 +846,8 @@ |
], |
}], |
['(OS=="linux" or OS=="android") and \ |
- (v8_target_arch=="x64" or v8_target_arch=="arm64")', { |
+ (v8_target_arch=="x64" or v8_target_arch=="arm64" or \ |
+ v8_target_arch=="ppc64")', { |
'target_conditions': [ |
['_toolset=="host"', { |
'conditions': [ |