From 920ed11a433b0e292a18adb8c68829a00e8c70cc Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 26 May 2020 21:35:59 +0300 Subject: Allow process path values and targets as buildscript program names Also deduce the recipe name. --- libbuild2/parser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/parser.cxx') diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index dada34d..756a45b 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -1187,7 +1187,7 @@ namespace build2 { if (d.first) { - if (ar->recipe_text (ctx, move (t.value), d.as)) + if (ar->recipe_text (ctx, *target_, move (t.value), d.as)) d.clean = true; // Verify we have no unhandled attributes. @@ -5862,7 +5862,7 @@ namespace build2 { fail (l) << "invalid value subscript: " << e << info (bl) << "use the '\\[' escape sequence if this is a " - << "wildcard pattern"; + << "wildcard pattern" << endf; } // Similar to expanding an undefined variable, we return NULL if -- cgit v1.1