aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPreConfig.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-03-23 12:54:54 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-23 12:54:54 -0700
commitc60bfbb1b58ceea872f12bc8b62f2654bb47fbaa (patch)
tree300d8c7922f53da153683f4c13b9cd579b55e446 /include/core/SkPreConfig.h
parent3c935bc87020bfd19a08922f7394db3a801d168b (diff)
force no SSE on iOS simulator
Diffstat (limited to 'include/core/SkPreConfig.h')
-rw-r--r--include/core/SkPreConfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index c17cc18e11..b9b46c073a 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -118,6 +118,10 @@
#define SK_CPU_SSE_LEVEL_AVX 51
#define SK_CPU_SSE_LEVEL_AVX2 52
+#ifdef SK_BUILD_FOR_IOS
+ #define SK_CPU_SSE_LEVEL 0 // We're tired of fighting with opts/ and iOS simulator.
+#endif
+
// Are we in GCC?
#ifndef SK_CPU_SSE_LEVEL
// These checks must be done in descending order to ensure we set the highest