From 56cc47e7e5dd3aa15e1023db5525bdc6a5486c1f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 15 Jan 2024 11:12:14 +0200 Subject: Add no_default_target attribute for source, buildfile import directives This attribute can be used to disable the default target semantics for the sources/imported buildfile. --- libbuild2/parser.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libbuild2/parser.hxx') diff --git a/libbuild2/parser.hxx b/libbuild2/parser.hxx index 7263e59..b756984 100644 --- a/libbuild2/parser.hxx +++ b/libbuild2/parser.hxx @@ -388,11 +388,17 @@ namespace build2 // processing. If the specified path name has a real path, then also enter // it as a buildfile. // + // If default_target is nullopt, then disable the default target semantics + // as when loading boostrap.build or root.build. If it is false, then + // continue with the existing default_target value. If it is true, then + // start with a new default_value and call process_default_target() at + // the end. + // void source_buildfile (istream&, const path_name&, const location&, - bool default_target); + optional default_target); // The what argument is used in diagnostics (e.g., "expected // instead of ...". -- cgit v1.1