File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1012,12 +1012,14 @@ def configure_arm(o):
10121012 o ['variables' ]['arm_fpu' ] = options .arm_fpu or arm_fpu
10131013
10141014
1015- def configure_mips (o ):
1015+ def configure_mips (o , target_arch ):
10161016 can_use_fpu_instructions = (options .mips_float_abi != 'soft' )
10171017 o ['variables' ]['v8_can_use_fpu_instructions' ] = b (can_use_fpu_instructions )
10181018 o ['variables' ]['v8_use_mips_abi_hardfloat' ] = b (can_use_fpu_instructions )
10191019 o ['variables' ]['mips_arch_variant' ] = options .mips_arch_variant
10201020 o ['variables' ]['mips_fpu_mode' ] = options .mips_fpu_mode
1021+ host_byteorder = 'little' if target_arch in ('mipsel' , 'mips64el' ) else 'big'
1022+ o ['variables' ]['v8_host_byteorder' ] = host_byteorder
10211023
10221024
10231025def gcc_version_ge (version_checked ):
@@ -1077,7 +1079,7 @@ def configure_node(o):
10771079 if target_arch == 'arm' :
10781080 configure_arm (o )
10791081 elif target_arch in ('mips' , 'mipsel' , 'mips64el' ):
1080- configure_mips (o )
1082+ configure_mips (o , target_arch )
10811083
10821084 if flavor == 'aix' :
10831085 o ['variables' ]['node_target_type' ] = 'static_library'
You can’t perform that action at this time.
0 commit comments