diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-12-06 08:33:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-12-06 08:33:15 +0200 |
commit | 2006284bfbda3416eb8348078fd98fa518d25c47 (patch) | |
tree | 960d8495e1d4a011348ab719fa486af49a50f912 /libbuild2/adhoc-rule-buildscript.cxx | |
parent | dcd8ccd86ca97de5293efc50f98d7072ee359e4c (diff) |
Redo make_parser interface to return path, handle invalid_path exception
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.cxx')
-rw-r--r-- | libbuild2/adhoc-rule-buildscript.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/adhoc-rule-buildscript.cxx b/libbuild2/adhoc-rule-buildscript.cxx index 3f3d59e..14df51a 100644 --- a/libbuild2/adhoc-rule-buildscript.cxx +++ b/libbuild2/adhoc-rule-buildscript.cxx @@ -911,7 +911,7 @@ namespace build2 // Note that we don't really need a diag frame that prints the // line being parsed since we are always parsing the file. // - pair<make_type, string> r ( + pair<make_type, path> r ( make.next (l, pos, il, false /* strict */)); if (r.second.empty ()) @@ -922,7 +922,7 @@ namespace build2 if (r.first == make_type::target) continue; - path f (move (r.second)); + path& f (r.second); if (f.relative ()) { |