aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-14 14:18:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-14 14:18:44 +0200
commit0aa7a94e1032a96a2a72cb6a82824f9fe970d412 (patch)
tree412ab1e9da30c708b616ae6fda1663b8169fc55c /libbuild2/target.cxx
parent218a739b33325c5dd6baa5cf6291dad849ad2441 (diff)
Improve empty simple value to empty list of names reduction heuristics
Specifically, do not reduce typed RHS empty simple values for prepend/append and additionally for assignment provided LHS is typed and is a container.
Diffstat (limited to 'libbuild2/target.cxx')
-rw-r--r--libbuild2/target.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx
index 16aec49..6d083d9 100644
--- a/libbuild2/target.cxx
+++ b/libbuild2/target.cxx
@@ -605,7 +605,7 @@ namespace build2
// name)? But then again we don't expect many such overrides. Plus
// will complicate the diagnostics below.
//
- ns = reverse (*l, storage);
+ ns = reverse (*l, storage, true /* reduce */);
if (ns.size () == 1)
{