summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAndrei Sedoi <bsnote@gmail.com>2013-06-19 14:48:36 +0300
committerBen Noordhuis <info@bnoordhuis.nl>2013-09-07 22:25:50 +0200
commit3546825b1400dfead0d5f87dbd2278586ab4a9e2 (patch)
tree32de842a1e044aef2212f9809c86c1eb388a456f /configure
parentebeae2df518af168a8ebd9117540238f0df916a3 (diff)
downloadnode-new-3546825b1400dfead0d5f87dbd2278586ab4a9e2.tar.gz
configure: add mips-float-abi (soft, hard) option
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index 77add2b42c..b750003673 100755
--- a/configure
+++ b/configure
@@ -250,6 +250,12 @@ parser.add_option("--with-arm-float-abi",
help="Specifies which floating-point ABI to use. Valid values are: "
"soft, softfp, hard")
+parser.add_option("--with-mips-float-abi",
+ action="store",
+ dest="mips_float_abi",
+ help="Specifies which floating-point ABI to use. Valid values are: "
+ "soft, hard")
+
parser.add_option("--ninja",
action="store_true",
dest="use_ninja",
@@ -441,6 +447,16 @@ def configure_arm(o):
o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
+def configure_mips(o):
+ if options.mips_float_abi:
+ if options.mips_float_abi in ('soft', 'hard'):
+ o['variables']['v8_use_mips_abi_hardfloat'] = b(
+ options.mips_float_abi == 'hard')
+ else:
+ raise Exception(
+ 'Invalid mips-float-abi value. Valid values are: soft, hard')
+
+
def configure_node(o):
o['variables']['v8_enable_gdbjit'] = 1 if options.gdb else 0
o['variables']['v8_no_strict_aliasing'] = 1 # work around compiler bugs
@@ -457,6 +473,8 @@ def configure_node(o):
if target_arch == 'arm':
configure_arm(o)
+ elif target_arch in ('mips', 'mipsel'):
+ configure_mips(o)
cc_version, is_clang = compiler_version()
o['variables']['clang'] = 1 if is_clang else 0