configure: Check MSVC defines for identifying hardfloat
authorMartin Storsjö <martin@martin.st>
Fri, 24 Jul 2015 20:25:10 +0000 (23:25 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 27 Jul 2015 07:45:15 +0000 (10:45 +0300)
This macro identifies whether VFPv3 is available; MSVC defaults
to hardfloat (except for older MSVC versions for CE, targeting
ARMv4).

Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 73f4e18..291247a 100755 (executable)
--- a/configure
+++ b/configure
@@ -4001,6 +4001,8 @@ elif enabled arm; then
 
     if     check_cpp_condition stddef.h "defined __ARM_PCS_VFP"; then
         enable vfp_args
+    elif check_cpp_condition stddef.h "defined _M_ARM_FP && _M_ARM_FP >= 30"; then
+        enable vfp_args
     elif ! check_cpp_condition stddef.h "defined __ARM_PCS || defined __SOFTFP__"; then
         case "${cross_prefix:-$cc}" in
             *hardfloat*)         enable vfp_args;   fpabi=vfp ;;