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/build/script/parser.test.cxx | |
parent | 4001ff053071c09008e88312c4f973c417322a07 (diff) |
Allow process path values and targets as buildscript program names
Also deduce the recipe name.
Diffstat (limited to 'libbuild2/build/script/parser.test.cxx')
-rw-r--r-- | libbuild2/build/script/parser.test.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libbuild2/build/script/parser.test.cxx b/libbuild2/build/script/parser.test.cxx index 10e1701..de3e839 100644 --- a/libbuild2/build/script/parser.test.cxx +++ b/libbuild2/build/script/parser.test.cxx @@ -58,7 +58,7 @@ namespace build2 cout << endl; - return e.back ().pipe.back ().program.string () == "true"; + return e.back ().pipe.back ().program.recall.string () == "true"; } virtual void @@ -160,7 +160,12 @@ namespace build2 // parser p (ctx); path_name nm ("buildfile"); - script s (p.pre_parse (cin, nm, 11 /* line */, nullopt)); + + script s (p.pre_parse (tt, + cin, nm, + 11 /* line */, + string ("test"), + location (nm, 10))); switch (m) { |