]> git.tdb.fi Git - builder.git/commitdiff
Use the correct target as root for cleaning
authorMikko Rasa <tdb@tdb.fi>
Tue, 20 Aug 2013 15:13:51 +0000 (18:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 20 Aug 2013 15:13:51 +0000 (18:13 +0300)
source/builder.cpp

index e501f69e0513631d8611830ae2c2b1f7cd75a963..3945b73333a4c6cb1d6995950c5a9197e48b2e0c 100644 (file)
@@ -255,7 +255,7 @@ int Builder::clean(bool all, bool dry_run)
 
        set<Target *> clean_tgts;
        list<Target *> queue;
-       queue.push_back(build_graph.get_target("cmdline"));
+       queue.push_back(&build_graph.get_goals());
 
        while(!queue.empty())
        {