Apply the OS_CODE macro redefinition workaround to iOS builds The issue described in https://flutter.googlesource.com/third_party/freetype2/+/af4c2d86d399b15f31f19aafe49e540578a6be39 happens in both macOS targets and iOS targets when building with the latest version of Clang. Change-Id: Ia7684ba11d0ac36074b1361fa1374ee8a59b86f0 Reviewed-on: https://flutter-review.googlesource.com/c/third_party/freetype2/+/57540 Reviewed-by: Zach Anderson <zra@google.com>
diff --git a/BUILD.gn b/BUILD.gn index 318884b..72b0aec 100644 --- a/BUILD.gn +++ b/BUILD.gn
@@ -50,7 +50,7 @@ config("freetype_private_config") { cflags = [] - if (is_mac && is_clang) { + if ((is_mac || is_ios) && is_clang) { cflags += [ "-Wno-macro-redefined", ]