-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add --depfile flag to inputs
and multi-inputs
tools.
#2626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -762,11 +762,26 @@ vector<Node*>::iterator ImplicitDepLoader::PreallocateSpace(Edge* edge, | |
} | ||
|
||
void InputsCollector::VisitNode(const Node* node) { | ||
const Edge* edge = node->in_edge(); | ||
Edge* edge = node->in_edge(); | ||
|
||
if (!edge) // A source file. | ||
return; | ||
|
||
if (implicit_dep_loader_ && !edge->deps_loaded_) { | ||
// Record that the deps were loaded in |deps_loaded_| as | ||
// multiple visits to the same edge can be performed by | ||
// repeated InputsCollector uses, as for the multi-inputs tool. | ||
edge->deps_loaded_ = true; | ||
|
||
// Ignore errors when loading depfile entries. | ||
std::string err; | ||
if (!implicit_dep_loader_->LoadDeps(edge, &err)) { | ||
// Print the error as a warning on stderr when an error occurred during | ||
// the load. | ||
Warning("%s", err.c_str()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI I tried out this branch just now and got the following output on ninja itself:
Probably there is a bug here somewhere? I would at least expect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also don't see it including any of the depfile inputs, which may or may not be related. |
||
} | ||
} | ||
digit-google marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
// Add inputs of the producing edge to the result, | ||
// except if they are themselves produced by a phony | ||
// edge. | ||
|
Uh oh!
There was an error while loading. Please reload this page.