Changes for executor.cpp: 6 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -756,11 +756,17 @@ void Executor::add_to_dag(const std::string& target, std::set<std::string>& visi
for(constauto&p:dag_[target].prereqs){
if(dag_.count(p)){
dag_[p].dependents.push_back(target);
}else{
fprintf(stderr,"DEBUGDAG dropped-edge target=%s prereq=%s (not in dag_, unresolved_deps was still incremented)\n",target.c_str(),p.c_str());
fflush(stderr);
}
}
for(constauto&p:dag_[target].order_only){
if(dag_.count(p)){
dag_[p].dependents.push_back(target);
}else{
fprintf(stderr,"DEBUGDAG dropped-edge(order-only) target=%s prereq=%s (not in dag_, unresolved_deps was still incremented)\n",target.c_str(),p.c_str());