[arm] Use TARGET_IOS instead of __APPLE__ so we don't use the ios abi when cross...
authorZoltan Varga <vargaz@gmail.com>
Mon, 6 Feb 2017 22:25:53 +0000 (17:25 -0500)
committerZoltan Varga <vargaz@gmail.com>
Mon, 6 Feb 2017 22:26:05 +0000 (17:26 -0500)
mono/mini/mini-arm.c

index 78858d00b02c6e7cef6955728c6860d308e3f4d8..42715480b0005e5969b924da1773fd3b46488759 100644 (file)
@@ -791,7 +791,7 @@ mono_arch_init (void)
 #else
        arm_fpu = MONO_ARM_FPU_VFP;
 
-#if defined(ARM_FPU_NONE) && !defined(__APPLE__)
+#if defined(ARM_FPU_NONE) && !defined(TARGET_IOS)
        /*
         * If we're compiling with a soft float fallback and it
         * turns out that no VFP unit is available, we need to
@@ -833,7 +833,7 @@ mono_arch_init (void)
        v7_supported = TRUE;
 #endif
 
-#if defined(__APPLE__)
+#if defined(TARGET_IOS)
        /* iOS is special-cased here because we don't yet
           have a way to properly detect CPU features on it. */
        thumb_supported = TRUE;