Index: src/images/SkForceLinking.cpp |
diff --git a/src/images/SkForceLinking.cpp b/src/images/SkForceLinking.cpp |
index e97106fdf838359cc16aa8df67c2118707df1ed0..2afe7192a9e3a05661973deb18939881052bae99 100644 |
--- a/src/images/SkForceLinking.cpp |
+++ b/src/images/SkForceLinking.cpp |
@@ -14,7 +14,8 @@ |
int SkForceLinking(bool doNotPassTrue) { |
if (doNotPassTrue) { |
SkASSERT(false); |
-#if defined(SK_HAS_JPEG_LIBRARY) |
+#if !defined(SK_BUILD_FOR_MAC) && !defined(SK_BUILD_FOR_WIN) && !defined(SK_BUILD_FOR_IOS) && \ |
+ defined(SK_HAS_JPEG_LIBRARY) |
CreateJPEGImageEncoder(); |
#endif |
#if defined(SK_HAS_WEBP_LIBRARY) |