Disable sktexttopdf when building for mipsel.
authormtklein <mtklein@chromium.org>
Mon, 29 Aug 2016 23:01:10 +0000 (16:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Aug 2016 23:01:10 +0000 (16:01 -0700)
The Clang in the latest NDK crashes when we try to build it for MIPS.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2286303004

Review-Url: https://codereview.chromium.org/2286303004

BUILD.gn

index 8454e4b..67347ea 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -804,15 +804,17 @@ if (skia_enable_tools) {
     testonly = true
   }
 
-  executable("sktexttopdf") {
-    sources = [
-      "tools/SkShaper_harfbuzz.cpp",
-      "tools/using_skia_and_harfbuzz.cpp",
-    ]
-    deps = [
-      ":skia",
-      "//third_party/harfbuzz",
-    ]
-    testonly = true
+  if (current_cpu != "mipsel") {  # Clang 3.8 crashes while compiling hb-icu.cc for mipsel.
+    executable("sktexttopdf") {
+      sources = [
+        "tools/SkShaper_harfbuzz.cpp",
+        "tools/using_skia_and_harfbuzz.cpp",
+      ]
+      deps = [
+        ":skia",
+        "//third_party/harfbuzz",
+      ]
+      testonly = true
+    }
   }
 }