diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-07 11:12:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-07 11:12:43 +0200 |
commit | 882583f64e517ab232edb6bbb7433631c655c9da (patch) | |
tree | 3d0e8e16c20b1346cb34961c7f908b07427e9632 /libbuild2/file.cxx | |
parent | cf18da3ac461087ccffd31222dbe4fa2e6428d56 (diff) |
Initial work on path_name use for `-` to stdin/stdout translation
Diffstat (limited to 'libbuild2/file.cxx')
-rw-r--r-- | libbuild2/file.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx index 974dc2b..2bc9af6 100644 --- a/libbuild2/file.cxx +++ b/libbuild2/file.cxx @@ -188,14 +188,17 @@ namespace build2 static void source (scope& root, scope& base, const path& bf, bool boot) { + path_name fn (bf); try { + // @@ PATH_NAME TODO + // ifdstream ifs; - return source (root, base, open_file_or_stdin (bf, ifs), bf, boot); + return source (root, base, open_file_or_stdin (fn, ifs), bf /* fn */, boot); } catch (const io_error& e) { - fail << "unable to read buildfile " << bf << ": " << e; + fail << "unable to read buildfile " << fn << ": " << e; } } |