X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fanalyzer.cpp;h=f91c298825cc8a8039a0c1d1bc63a7036ec75120;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=4cebafad175ae6d7cc3a1a2459ffbba4c4d1709e;hpb=7c2db9e2b91da953701be233336c5bfa1f3c4af0;p=builder.git diff --git a/source/analyzer.cpp b/source/analyzer.cpp index 4cebafa..f91c298 100644 --- a/source/analyzer.cpp +++ b/source/analyzer.cpp @@ -1,3 +1,4 @@ +#include #include #include #include "analyzer.h" @@ -12,13 +13,6 @@ using namespace std; using namespace Msp; -Analyzer::Analyzer(Builder &b): - builder(b), - mode(DEPS), - max_depth(0), - full_paths(false) -{ } - void Analyzer::analyze() { if(mode==RDEPS) @@ -114,7 +108,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);