We have to use portable code with SkJumper on tvOS
authorMatthew Leibowitz <mattleibow@live.com>
Fri, 11 Aug 2017 12:16:10 +0000 (14:16 +0200)
committerMatthew Leibowitz <mattleibow@live.com>
Fri, 11 Aug 2017 12:16:10 +0000 (14:16 +0200)
src/jumper/SkJumper.cpp

index 10455b9..04d326a 100644 (file)
@@ -39,7 +39,7 @@ using StageFn = void(void);
 
 extern "C" {
 
-#if __has_feature(memory_sanitizer)
+#if __has_feature(memory_sanitizer) || defined(SK_BUILD_FOR_TVOS)
     // We'll just run portable code.
 
 #elif defined(__aarch64__)
@@ -115,7 +115,7 @@ static SkJumper_Engine gPlatform = kPortable;
 static SkOnce gChooseEngineOnce;
 
 static SkJumper_Engine choose_engine() {
-#if __has_feature(memory_sanitizer)
+#if __has_feature(memory_sanitizer) || defined(SK_BUILD_FOR_TVOS)
     // We'll just run portable code.
 
 #elif defined(__aarch64__)