aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/parser.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-11-24 18:09:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-11-25 14:15:43 +0300
commit472d6d0e49c0114f46ff31267d09acdbf9fba421 (patch)
tree9edfc26e77edabee872c625eb5b96e845b7b4654 /libbuild2/build/script/parser.hxx
parentf8408539216cc213fa780560b7396af8ba801e2e (diff)
Use operation name as a buildscript name if unable to deduce
Diffstat (limited to 'libbuild2/build/script/parser.hxx')
-rw-r--r--libbuild2/build/script/parser.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbuild2/build/script/parser.hxx b/libbuild2/build/script/parser.hxx
index 3121320..70e24aa 100644
--- a/libbuild2/build/script/parser.hxx
+++ b/libbuild2/build/script/parser.hxx
@@ -311,6 +311,10 @@ namespace build2
// builtin after the script name or after another diag builtin) is
// reported as ambiguity.
//
+ // If no script name is deduced by the end of pre-parsing and the
+ // script is used for a single operation, then use this operation's
+ // name as a script name.
+ //
// At the end of pre-parsing either diag_name_ is present or
// diag_preamble_ is not empty (but not both).
//