aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbuild2/parser.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index ebfb698..a404115 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -324,7 +324,9 @@ namespace build2
else
{
parse_clause (t, tt);
- process_default_target (t, bf);
+
+ if (stage_ != stage::boot && stage_ != stage::root)
+ process_default_target (t, bf);
}
if (tt != type::eos)
@@ -3213,7 +3215,9 @@ namespace build2
if (deft)
{
- process_default_target (t, bf);
+ if (stage_ != stage::boot && stage_ != stage::root)
+ process_default_target (t, bf);
+
default_target_ = odt;
}