From c5187f8198fa8459b6219085f1f8d94bc280e9c5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Jan 2024 11:09:45 +0200 Subject: Disable default target semantics when loading {bootstrap,root}.build --- libbuild2/parser.cxx | 8 ++++++-- 1 file 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; } -- cgit v1.1