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 @@ -1059,12 +1059,14 @@ def configure_arm(o):
1059
1059
o ['variables' ]['arm_fpu' ] = options .arm_fpu or arm_fpu
1060
1060
1061
1061
1062
- def configure_mips (o ):
1062
+ def configure_mips (o , target_arch ):
1063
1063
can_use_fpu_instructions = (options .mips_float_abi != 'soft' )
1064
1064
o ['variables' ]['v8_can_use_fpu_instructions' ] = b (can_use_fpu_instructions )
1065
1065
o ['variables' ]['v8_use_mips_abi_hardfloat' ] = b (can_use_fpu_instructions )
1066
1066
o ['variables' ]['mips_arch_variant' ] = options .mips_arch_variant
1067
1067
o ['variables' ]['mips_fpu_mode' ] = options .mips_fpu_mode
1068
+ host_byteorder = 'little' if target_arch in ('mipsel' , 'mips64el' ) else 'big'
1069
+ o ['variables' ]['v8_host_byteorder' ] = host_byteorder
1068
1070
1069
1071
1070
1072
def gcc_version_ge (version_checked ):
@@ -1124,7 +1126,7 @@ def configure_node(o):
1124
1126
if target_arch == 'arm' :
1125
1127
configure_arm (o )
1126
1128
elif target_arch in ('mips' , 'mipsel' , 'mips64el' ):
1127
- configure_mips (o )
1129
+ configure_mips (o , target_arch )
1128
1130
1129
1131
if flavor == 'aix' :
1130
1132
o ['variables' ]['node_target_type' ] = 'static_library'
You can’t perform that action at this time.
0 commit comments