X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanalyzer.cpp;h=21ed52cec64b2cf463a62a1d9823870ea5917283;hb=1a46151c99a406123c4ddfc797a7841baf3e4cc2;hp=a4780fd697dd451fae6afa5ddc6efce020f9be9a;hpb=0d80cabf649b931b26e7055385156c75a7385d35;p=builder.git diff --git a/source/analyzer.cpp b/source/analyzer.cpp index a4780fd..21ed52c 100644 --- a/source/analyzer.cpp +++ b/source/analyzer.cpp @@ -34,14 +34,14 @@ void Analyzer::analyze() void Analyzer::build_depend_table(Target &tgt, unsigned depth) { - if(mode!=REBUILD) + if(mode!=REBUILD && mode!=ALLDEPS) { if(dynamic_cast(&tgt)) return build_depend_table(*tgt.get_depends().front(), depth); else if(dynamic_cast(&tgt)) return build_depend_table(*tgt.get_depends().front(), depth); } - else if(!tgt.get_rebuild()) + else if(mode==REBUILD && !tgt.get_rebuild()) return; TableRow row; @@ -73,9 +73,9 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth) if(!max_depth || depth &depends=tgt.get_depends(); + const TargetList &depends=tgt.get_depends(); //depends.sort(target_order); - for(list::const_iterator i=depends.begin(); i!=depends.end(); ++i) + for(TargetList::const_iterator i=depends.begin(); i!=depends.end(); ++i) build_depend_table(**i, depth+1); } }