Index: tools/flags/SkCommandLineFlags.cpp |
diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp |
index 2fe7824c84e465e652648500e5cfe2c684a80120..9b2c9616cbf4ebc0a70c4bfc33cc98910053bc4d 100644 |
--- a/tools/flags/SkCommandLineFlags.cpp |
+++ b/tools/flags/SkCommandLineFlags.cpp |
@@ -11,8 +11,8 @@ |
#include <stdlib.h> |
-#if defined(GOOGLE3) && defined(SK_BUILD_FOR_ANDROID) |
- // I don't know why, but this is defined by //base only for Android. |
+#if defined(GOOGLE3) && (defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_IOS)) |
+ // I don't know why, but this is defined by //base only for non-Linux. |
DECLARE_bool(undefok) |
#else |
DEFINE_bool(undefok, false, "Silently ignore unknown flags instead of crashing."); |