diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 11:14:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-23 11:14:05 +0200 |
commit | db0edaafe15831ba6fa9c2109da37942506c62b1 (patch) | |
tree | 320dfcbf16b553c162cd079d633f16b6054b9740 /build2/b.cxx | |
parent | 19c37866524f60a7710b256dd13bf1da9f8cff16 (diff) |
Cleanup absolute/relative path diagnostics by introducing stream verbosity
Diffstat (limited to 'build2/b.cxx')
-rw-r--r-- | build2/b.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build2/b.cxx b/build2/b.cxx index cc87cec..c6a118e 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -151,7 +151,7 @@ main (int argc, char* argv[]) istringstream is (s); is.exceptions (istringstream::failbit | istringstream::badbit); - lexer l (is, "<cmdline>"); + lexer l (is, path ("<cmdline>")); token t (l.next ()); if (t.type == token_type::eos) @@ -202,7 +202,7 @@ main (int argc, char* argv[]) is.exceptions (istringstream::failbit | istringstream::badbit); parser p; - bspec = p.parse_buildspec (is, "<buildspec>"); + bspec = p.parse_buildspec (is, path ("<buildspec>")); } catch (const istringstream::failure&) { @@ -227,7 +227,8 @@ main (int argc, char* argv[]) for (opspec& os: ms) { - const location l ("<buildspec>", 1, 0); //@@ TODO + const path p ("<buildspec>"); + const location l (&p, 1, 0); //@@ TODO if (os.empty ()) // Default target: dir{}. os.push_back (targetspec (name ("dir", string ()))); |