diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-20 15:03:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-20 18:29:54 +0200 |
commit | 389f0fe004c205cdee9d7f9f7a4c880055bfb285 (patch) | |
tree | caa9efe489009e515b852492bd800285f291c109 /build2/parser.cxx | |
parent | 9964a9aca03b38c2959994e0fdc91014da252cb8 (diff) |
Add support for dumping prerequisite-specific variables
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r-- | build2/parser.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx index 7c8695a..54aa93d 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -1890,10 +1890,10 @@ namespace build2 } else { - for (auto i (ns.begin ()), e (ns.end ()); i != e; ++i) + for (auto i (ns.begin ()), e (ns.end ()); i != e; ) { - name& n (*i); - name o (n.pair ? move (*++i) : name ()); + name& n (*i++); + name o (n.pair ? move (*i++) : name ()); const target* t (enter_target::find_target (*this, n, o, l, trace)); @@ -1905,6 +1905,9 @@ namespace build2 if (n.pair && !o.dir.empty ()) os << '@' << o.dir; os << '>' << endl; } + + if (i != e) + os << endl; } } |