diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-01-15 11:12:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-01-15 11:12:14 +0200 |
commit | 56cc47e7e5dd3aa15e1023db5525bdc6a5486c1f (patch) | |
tree | f2df51d7719f32306787ace9a73223d4a2303f47 /libbuild2/parser.hxx | |
parent | c5187f8198fa8459b6219085f1f8d94bc280e9c5 (diff) |
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.
Diffstat (limited to 'libbuild2/parser.hxx')
-rw-r--r-- | libbuild2/parser.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
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<bool> default_target); // The what argument is used in diagnostics (e.g., "expected <what> // instead of ...". |