diff --git a/func.cc b/func.cc index 9aaa9a2..623e56e 100644 --- a/func.cc +++ b/func.cc @@ -533,7 +533,9 @@ static void ShellFuncImpl(const string& shell, const string& cmd, static vector g_command_results; bool ShouldStoreCommandResult(StringPiece cmd) { - if (HasWord(cmd, "date") || HasWord(cmd, "echo")) + // We really just want to ignore this one, or remove BUILD_DATETIME from + // Android completely + if (cmd == "date +%s") return false; Pattern pat(g_flags.ignore_dirty_pattern);