Index: include/core/SkPreConfig.h |
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h |
index f241bab2ff7b1a9cbf4618e3120d9fb014a2080e..b165ae1255b8730cfd586cd14588b240773df5ed 100644 |
--- a/include/core/SkPreConfig.h |
+++ b/include/core/SkPreConfig.h |
@@ -193,6 +193,12 @@ |
#define SK_ARM_HAS_NEON |
#endif |
+// Really this __APPLE__ check shouldn't be necessary, but it seems that Apple's Clang defines |
+// __ARM_FEATURE_CRC32 for -arch arm64, even though their chips don't support those instructions! |
+#if defined(__ARM_FEATURE_CRC32) && !defined(__APPLE__) |
+ #define SK_ARM_HAS_CRC32 |
+#endif |
+ |
////////////////////////////////////////////////////////////////////// |
#if !defined(SKIA_IMPLEMENTATION) |