]> git.tdb.fi Git - builder.git/commitdiff
These checks are unnecessary with the separate symlink target gone
authorMikko Rasa <tdb@tdb.fi>
Wed, 9 May 2012 16:22:08 +0000 (19:22 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:51 +0000 (00:08 +0300)
source/analyzer.cpp
source/filetarget.cpp

index 98e71a88f32963648aff12e416231198bb11c8e0..15386784e690353ac751ccf54aea38d56c98770e 100644 (file)
@@ -66,7 +66,7 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth)
                if(const ObjectFile *obj = dynamic_cast<const ObjectFile *>(&tgt))
                        return build_depend_table(obj->get_source(), depth);
        }
-       else if(mode==REBUILD && !tgt.needs_rebuild() && !real->needs_rebuild())
+       else if(mode==REBUILD && !tgt.needs_rebuild())
                /* All targets that depend on to-be-built targets will be rebuilt
                themselves, so we can stop here. */
                return;
index dd20a0e8554d8cb5795af04e1e09b33fa279c2cb..62265b0d9c956bbdaf644192f0a5f428ecb483ee 100644 (file)
@@ -48,12 +48,6 @@ void FileTarget::check_rebuild()
                                mark_rebuild((*i)->get_name()+" has changed");
                        else if((*i)->needs_rebuild())
                                mark_rebuild((*i)->get_name()+" needs rebuilding");
-                       else
-                       {
-                               Target *real = ft->get_real_target();
-                               if(real->needs_rebuild())
-                                       mark_rebuild(real->get_name()+" needs rebuilding");
-                       }
                }
        }