From: Mikko Rasa Date: Wed, 9 May 2012 16:22:08 +0000 (+0300) Subject: These checks are unnecessary with the separate symlink target gone X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=675571163de39c2872ab1b78c8ab0c6b84dac538;p=builder.git These checks are unnecessary with the separate symlink target gone --- diff --git a/source/analyzer.cpp b/source/analyzer.cpp index 98e71a8..1538678 100644 --- a/source/analyzer.cpp +++ b/source/analyzer.cpp @@ -66,7 +66,7 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth) if(const ObjectFile *obj = dynamic_cast(&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; diff --git a/source/filetarget.cpp b/source/filetarget.cpp index dd20a0e..62265b0 100644 --- a/source/filetarget.cpp +++ b/source/filetarget.cpp @@ -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"); - } } }