Skip to content

Commit

Permalink
Don't print dynamic outputs from 'deps' tooll
Browse files Browse the repository at this point in the history
Keep 'deps' the same as before; dynamic outputs
can be printed using the 'dynouts' tool instead
  • Loading branch information
HampusAdolfsson committed Dec 22, 2023
1 parent cacfed5 commit 5005467
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ninja.cc
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,11 @@ int NinjaMain::ToolDeps(const Options* options, int argc, char** argv) {
TimeStamp mtime = disk_interface.Stat((*it)->path(), &err);
if (mtime == -1)
Error("%s", err.c_str()); // Log and ignore Stat() errors;
int deps_count = deps->node_count - deps->outputs_count;
printf("%s: #deps %d, deps mtime %" PRId64 " (%s)\n",
(*it)->path().c_str(), deps->node_count, deps->mtime,
(*it)->path().c_str(), deps_count, deps->mtime,
(!mtime || mtime > deps->mtime ? "STALE":"VALID"));
for (int i = 0; i < deps->node_count; ++i)
for (int i = 0; i < deps_count; ++i)
printf(" %s\n", deps->nodes[i]->path().c_str());
printf("\n");
}
Expand Down

0 comments on commit 5005467

Please sign in to comment.