| Index: build/toolchain.gypi
|
| diff --git a/build/toolchain.gypi b/build/toolchain.gypi
|
| index 2163171d7e55a01f6d79beaa489a87f7f0175a58..bd081e179107cc79cefe4e90e1ef6a10b140fd24 100644
|
| --- a/build/toolchain.gypi
|
| +++ b/build/toolchain.gypi
|
| @@ -341,7 +341,8 @@
|
| 'cflags': ['-march=i586'],
|
| }], # v8_target_arch=="x87"
|
| ['(v8_target_arch=="mips" or v8_target_arch=="mipsel" \
|
| - or v8_target_arch=="mips64el") and v8_target_arch==target_arch', {
|
| + or v8_target_arch=="mips64" or v8_target_arch=="mips64el") \
|
| + and v8_target_arch==target_arch', {
|
| 'target_conditions': [
|
| ['_toolset=="target"', {
|
| # Target built with a Mips CXX compiler.
|
| @@ -743,7 +744,7 @@
|
| }],
|
| ],
|
| }], # v8_target_arch=="mipsel"
|
| - ['v8_target_arch=="mips64el"', {
|
| + ['v8_target_arch=="mips64el" or v8_target_arch=="mips64"', {
|
| 'defines': [
|
| 'V8_TARGET_ARCH_MIPS64',
|
| ],
|
| @@ -753,6 +754,16 @@
|
| 'CAN_USE_FPU_INSTRUCTIONS',
|
| ],
|
| }],
|
| + [ 'v8_host_byteorder=="little"', {
|
| + 'defines': [
|
| + 'V8_TARGET_ARCH_MIPS64_LE',
|
| + ],
|
| + }],
|
| + [ 'v8_host_byteorder=="big"', {
|
| + 'defines': [
|
| + 'V8_TARGET_ARCH_MIPS64_BE',
|
| + ],
|
| + }],
|
| [ 'v8_use_mips_abi_hardfloat=="true"', {
|
| 'defines': [
|
| '__mips_hard_float=1',
|
| @@ -769,11 +780,17 @@
|
| 'conditions': [
|
| ['v8_target_arch==target_arch', {
|
| 'cflags': [
|
| - '-EL',
|
| '-Wno-error=array-bounds', # Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56273
|
| ],
|
| - 'ldflags': ['-EL'],
|
| 'conditions': [
|
| + ['v8_target_arch=="mips64el"', {
|
| + 'cflags': ['-EL'],
|
| + 'ldflags': ['-EL'],
|
| + }],
|
| + ['v8_target_arch=="mips64"', {
|
| + 'cflags': ['-EB'],
|
| + 'ldflags': ['-EB'],
|
| + }],
|
| [ 'v8_use_mips_abi_hardfloat=="true"', {
|
| 'cflags': ['-mhard-float'],
|
| 'ldflags': ['-mhard-float'],
|
|
|