From 675571163de39c2872ab1b78c8ab0c6b84dac538 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 9 May 2012 19:22:08 +0300 Subject: [PATCH] These checks are unnecessary with the separate symlink target gone --- source/analyzer.cpp | 2 +- source/filetarget.cpp | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) 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"); - } } } -- 2.45.2