File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1001,12 +1001,14 @@ def configure_arm(o):
1001
1001
o ['variables' ]['arm_fpu' ] = options .arm_fpu or arm_fpu
1002
1002
1003
1003
1004
- def configure_mips (o ):
1004
+ def configure_mips (o , target_arch ):
1005
1005
can_use_fpu_instructions = (options .mips_float_abi != 'soft' )
1006
1006
o ['variables' ]['v8_can_use_fpu_instructions' ] = b (can_use_fpu_instructions )
1007
1007
o ['variables' ]['v8_use_mips_abi_hardfloat' ] = b (can_use_fpu_instructions )
1008
1008
o ['variables' ]['mips_arch_variant' ] = options .mips_arch_variant
1009
1009
o ['variables' ]['mips_fpu_mode' ] = options .mips_fpu_mode
1010
+ host_byteorder = 'little' if target_arch in ('mipsel' , 'mips64el' ) else 'big'
1011
+ o ['variables' ]['v8_host_byteorder' ] = host_byteorder
1010
1012
1011
1013
1012
1014
def gcc_version_ge (version_checked ):
@@ -1062,7 +1064,7 @@ def configure_node(o):
1062
1064
if target_arch == 'arm' :
1063
1065
configure_arm (o )
1064
1066
elif target_arch in ('mips' , 'mipsel' , 'mips64el' ):
1065
- configure_mips (o )
1067
+ configure_mips (o , target_arch )
1066
1068
1067
1069
if flavor == 'aix' :
1068
1070
o ['variables' ]['node_target_type' ] = 'static_library'
You can’t perform that action at this time.
0 commit comments