From 32da110110efa515f60056c7dd065b34d1fd2c24 Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Thu, 8 Sep 2016 11:01:09 -0700 Subject: [PATCH] Work around a Clang issue where the compiler defines __ARM_FEATURE_CRC32 even though the crc32 instruction is unavailable. (flutter/engine#3010) --- engine/src/flutter/skia/BUILD.gn | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/src/flutter/skia/BUILD.gn b/engine/src/flutter/skia/BUILD.gn index 42c349f991..ebdfcf650d 100644 --- a/engine/src/flutter/skia/BUILD.gn +++ b/engine/src/flutter/skia/BUILD.gn @@ -220,6 +220,9 @@ config("skia_library_config") { cflags = [ # Skia uses routines deprecated in iOS 7 and above "-Wno-deprecated-declarations", + # Clang incorrectly defines this even though the crc32 instruction is + # unavailable https://github.com/lionheart/openradar-mirror/issues/7653 + "-U__ARM_FEATURE_CRC32", ] libs = [ "ImageIO.framework" ]