aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/file.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:12:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-07 11:12:43 +0200
commit882583f64e517ab232edb6bbb7433631c655c9da (patch)
tree3d0e8e16c20b1346cb34961c7f908b07427e9632 /libbuild2/file.cxx
parentcf18da3ac461087ccffd31222dbe4fa2e6428d56 (diff)
Initial work on path_name use for `-` to stdin/stdout translation
Diffstat (limited to 'libbuild2/file.cxx')
-rw-r--r--libbuild2/file.cxx7
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;
}
}