diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-05-26 21:35:59 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-06-03 12:26:33 +0300 |
commit | 920ed11a433b0e292a18adb8c68829a00e8c70cc (patch) | |
tree | e365baf8be68b168e19f42f20c5dde1526c1cbba /libbuild2/parser.cxx | |
parent | 4001ff053071c09008e88312c4f973c417322a07 (diff) |
Allow process path values and targets as buildscript program names
Also deduce the recipe name.
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 |