summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorNathan Rajlich <nathan@tootallnate.net>2013-01-10 17:13:59 -0800
committerNathan Rajlich <nathan@tootallnate.net>2013-01-10 17:13:59 -0800
commitb916774255940c721df882b5b8ab63934891df99 (patch)
tree8f1c24611c1d45dc63c757a07270c26aee2337a6 /configure
parent438e0c6d75eb0968202e2ccfcf0417cb56ba55c9 (diff)
downloadnode-new-b916774255940c721df882b5b8ab63934891df99.tar.gz
configure: define "arm_fpu" and "arm_neon" for ARM
v8's common.gypi file expects them to be defined now. Closes #4534.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 11 insertions, 5 deletions
diff --git a/configure b/configure
index a8687f26f5..a5a18e33da 100755
--- a/configure
+++ b/configure
@@ -336,6 +336,11 @@ def is_arch_armv7():
'__ARM_ARCH_7M__' in cc_macros_cache)
+def is_arm_neon():
+ """Check for ARM NEON support"""
+ return '__ARM_NEON__' in cc_macros()
+
+
def arm_hard_float_abi():
"""Check for hardfloat or softfloat eabi on ARM"""
# GCC versions 4.6 and above define __ARM_PCS or __ARM_PCS_VFP to specify
@@ -422,14 +427,15 @@ def configure_arm(o):
hard_float = options.arm_float_abi == 'hard'
else:
hard_float = arm_hard_float_abi()
- o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
armv7 = is_arch_armv7()
- if armv7:
- # CHECKME VFPv3 implies ARMv7+ but is the reverse true as well?
- o['variables']['arm_fpu'] = 'vfpv3'
- o['variables']['arm_neon'] = 0
+ # CHECKME VFPv3 implies ARMv7+ but is the reverse true as well?
+ fpu = 'vfpv3' if armv7 else 'vfpv2'
+
o['variables']['armv7'] = int(armv7)
+ o['variables']['arm_fpu'] = fpu
+ o['variables']['arm_neon'] = int(is_arm_neon())
+ o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
def configure_node(o):