Index: tools/flags/SkCommandLineFlags.cpp |
diff --git a/tools/flags/SkCommandLineFlags.cpp b/tools/flags/SkCommandLineFlags.cpp |
index dc99fec8cd17175e3891c7c5b23d62f67b9caf16..50c193fdf23f309ef92bc081f33676813084d97e 100644 |
--- a/tools/flags/SkCommandLineFlags.cpp |
+++ b/tools/flags/SkCommandLineFlags.cpp |
@@ -303,6 +303,11 @@ void SkCommandLineFlags::Parse(int argc, char** argv) { |
flag = flag->next(); |
} |
if (!flagMatched) { |
+#if SK_BUILD_FOR_MAC |
+ if (SkStrStartsWith(argv[i], "NSDocumentRevisions")) { |
+ i++; // skip YES |
+ } else |
+#endif |
if (!FLAGS_undefok) { |
SkDebugf("Got unknown flag \"%s\". Exiting.\n", argv[i]); |
exit(-1); |