Signed-off-by: liangxinyan <liangxinyan2@huawei.com>
This commit is contained in:
liangxinyan 2024-05-25 09:35:03 +08:00
parent 03745fb315
commit 0ff2536f46
7 changed files with 1646 additions and 1649 deletions

View File

@ -880,8 +880,7 @@ bool Builder::FinishCommand(CommandRunner::Result* result, string* err) {
if (!deps_type.empty()) {
string extract_err;
if (!ExtractDeps(result, deps_type, deps_prefix, &deps_nodes,
&extract_err) &&
result->success()) {
&extract_err) && result->success()) {
if (!result->output.empty())
result->output.append("\n");
result->output.append(extract_err);

View File

@ -324,7 +324,6 @@ yy32:
}
}
}
}
int len = (int)(out - filename);

View File

@ -427,8 +427,7 @@ void StatusPrinter::PrintStatus(const Edge* edge, int64_t time_millis) {
to_print = FormatProgressStatus(progress_status_format_, time_millis)
+ to_print;
printer_.Print(to_print,
force_full_command ? LinePrinter::FULL : LinePrinter::ELIDE);
printer_.Print(to_print,force_full_command ? LinePrinter::FULL : LinePrinter::ELIDE);
}
void StatusPrinter::Warning(const char* msg, ...) {