X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanalyzer.cpp;h=b3b1f217667951ec9df9e739bf8de20eb14f5cd9;hb=d1f9551e05c9d341149eb490e05b1465d3d6b711;hp=4cebafad175ae6d7cc3a1a2459ffbba4c4d1709e;hpb=7c2db9e2b91da953701be233336c5bfa1f3c4af0;p=builder.git diff --git a/source/analyzer.cpp b/source/analyzer.cpp index 4cebafa..b3b1f21 100644 --- a/source/analyzer.cpp +++ b/source/analyzer.cpp @@ -1,3 +1,4 @@ +#include #include #include #include "analyzer.h" @@ -13,10 +14,7 @@ using namespace std; using namespace Msp; Analyzer::Analyzer(Builder &b): - builder(b), - mode(DEPS), - max_depth(0), - full_paths(false) + builder(b) { } void Analyzer::analyze() @@ -114,7 +112,7 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth) depends.insert(depends.end(), tdeps.begin(), tdeps.end()); } - depends.sort(full_paths ? target_order_full : target_order); + sort(depends, (full_paths ? target_order_full : target_order)); for(Target *d: depends) build_depend_table(*d, depth+1);