From 472d6d0e49c0114f46ff31267d09acdbf9fba421 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 24 Nov 2022 18:09:35 +0300 Subject: Use operation name as a buildscript name if unable to deduce --- libbuild2/build/script/parser.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbuild2/build/script/parser.hxx') 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). // -- cgit v1.1