From: mtklein Date: Fri, 31 Jul 2015 21:47:25 +0000 (-0700) Subject: disable SkOpts on x86 iOS (simulator) X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~1460 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f96bee384dea60a4e96035878e2671cd49d3b406;p=platform%2Fupstream%2FlibSkiaSharp.git disable SkOpts on x86 iOS (simulator) TBR= BUG=skia: Review URL: https://codereview.chromium.org/1266443006 --- diff --git a/src/core/SkOpts.cpp b/src/core/SkOpts.cpp index c833f19..9ccc66d 100644 --- a/src/core/SkOpts.cpp +++ b/src/core/SkOpts.cpp @@ -55,7 +55,8 @@ namespace SkOpts { //TODO: _dsp2, _armv7, _armv8, _x86, _x86_64, _sse42, _avx, avx2, ... ? static void init() { - #if defined(SK_CPU_X86) + // TODO: Chrome's not linking _sse* opts on iOS simulator builds. Bug or feature? + #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) uint32_t abcd[] = {0,0,0,0}; cpuid(abcd); if (abcd[3] & (1<<26)) { Init_sse2(); }