diff options
author | Paul Smith <psmith@gnu.org> | 1999-08-23 22:15:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-08-23 22:15:17 +0000 |
commit | 5dc4b92b606351290d979371da4a500ce8f6a57e (patch) | |
tree | b8d06830fdf21258b23c4759a4ae0ca53b1f5bea /remake.c | |
parent | b3fa4b3c7e77cb4a1767b16b1cfbef2ab19a78cf (diff) | |
download | gunmake-5dc4b92b606351290d979371da4a500ce8f6a57e.tar.gz |
* Fix jobserver algorithm again.
* A couple of nits.
* Fix considered pruning for double-colon rules.
Diffstat (limited to 'remake.c')
-rw-r--r-- | remake.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -316,19 +316,19 @@ update_file (file, depth) register int status = 0; register struct file *f; - /* Prune the dependency graph: if we've already been here on _this_ pass - through the dependency graph, we don't have to go any further. We won't - reap_children until we start the next pass, so no state change is - possible below here until then. */ - if (file->considered == considered) - { - DEBUGPR (_("Pruning file `%s'.\n")); - return 0; - } - file->considered = considered; - for (f = file->double_colon ? file->double_colon : file; f != 0; f = f->prev) { + /* Prune the dependency graph: if we've already been here on _this_ + pass through the dependency graph, we don't have to go any further. + We won't reap_children until we start the next pass, so no state + change is possible below here until then. */ + if (f->considered == considered) + { + DEBUGPR (_("Pruning file `%s'.\n")); + continue; + } + f->considered = considered; + status |= update_file_1 (f, depth); check_renamed (f); |