diff options
Diffstat (limited to 'build/b.cxx')
-rw-r--r-- | build/b.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build/b.cxx b/build/b.cxx index 659eb40..edefbe9 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -205,20 +205,21 @@ main (int argc, char* argv[]) // Build. // - if (default_target == nullptr) - fail << "no default target"; + auto i (targets.find (dir::static_type.id, out_base, "", nullptr, trace)); + if (i == targets.end ()) + fail << "no targets in " << bf; - target& d (*default_target); + target& t (**i); - match (d); + match (t); dump (); - switch (update (d)) + switch (update (t)) { case target_state::uptodate: { - info << "target " << d << " is up to date"; + info << "target " << t << " is up to date"; break; } case target_state::updated: |