aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-01-15 11:09:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-01-15 11:09:45 +0200
commitc5187f8198fa8459b6219085f1f8d94bc280e9c5 (patch)
tree48db9905aa75e8918ad6397768644e93814be094 /libbuild2
parentf8a8b3f127712e93d9f408ef3a58f1342e3cd7d8 (diff)
Disable default target semantics when loading {bootstrap,root}.build
Diffstat (limited to 'libbuild2')
-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;
}