- mark_rebuild((*i)->get_name()+" has changed");
- else if((*i)->needs_rebuild())
- mark_rebuild((*i)->get_name()+" needs rebuilding");
- else
+ mark_rebuild(d->get_name()+" has changed");
+ else if(d->needs_rebuild())
+ mark_rebuild(d->get_name()+" needs rebuilding");
+ if(needs_rebuild())
+ break;
+ }
+ }
+
+ if(!needs_rebuild())
+ {
+ // Some side effects might not exist
+ auto i = find_if(side_effects, [](const Target *s){ return s->needs_rebuild(); });
+ if(i!=side_effects.end())
+ mark_rebuild((*i)->get_name()+" needs rebuilding");
+ }
+
+ if(!needs_rebuild() && package)
+ {
+ if(package->get_config().get_mtime()>mtime)
+ mark_rebuild("Package options changed");
+
+ if(tool->get_executable())
+ {
+ string build_sig = create_build_signature();
+ if(package->get_cache().has_key(this, "build_sig"))