From d7cb460833e6dde3e3b958b993eee3eee4ae3bf0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 29 Sep 2022 09:46:58 +0200 Subject: Fix variable append logic in script --- libbuild2/parser.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libbuild2/parser.cxx') diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index 5dbbfac..1cffb85 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -5001,6 +5001,18 @@ namespace build2 fail (l) << "unexpected value in attribute " << a; } + apply_value (var, v, move (rhs), kind, l, type, null); + } + + void parser:: + apply_value (const variable* var, + value& v, + value&& rhs, + type kind, + const location& l, + const value_type* type, + bool null) + { // When do we set the type and when do we keep the original? This gets // tricky for append/prepend where both values contribute. The guiding // rule here is that if the user specified the type, then they reasonable -- cgit v1.1