From f588f2e5a62d7621d20b2a567b8835bb87ff31f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Nov 2017 18:44:21 +0200 Subject: Fix bug in importing multiple targets with single directive --- build2/parser.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/parser.cxx') diff --git a/build2/parser.cxx b/build2/parser.cxx index 54aa93d..1f2ab9d 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -1284,9 +1284,16 @@ namespace build2 if (val != nullptr) { if (atype == type::assign) + { val->assign (move (r), var); + atype = type::append; // Append subsequent values. + } else if (atype == type::prepend) + { + // Note: multiple values will be prepended in reverse. + // val->prepend (move (r), var); + } else val->append (move (r), var); } -- cgit v1.1