aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-02 11:31:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-02 11:31:25 +0200
commit171b0e3a3b6f5bde0489c0e12c679fcefdeca54f (patch)
tree654518124cc827f2a62b749d89e632709a1131c1 /libbuild2/variable.hxx
parente2e2001260406bcfa0c636e00be3bc34808f8968 (diff)
Don't consider aliasing in variable override lookup
Diffstat (limited to 'libbuild2/variable.hxx')
-rw-r--r--libbuild2/variable.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx
index fc446bc..df0cb77 100644
--- a/libbuild2/variable.hxx
+++ b/libbuild2/variable.hxx
@@ -1555,11 +1555,13 @@ namespace build2
return var != nullptr ? operator[] (*var) : lookup_type ();
}
- // If typed is false, leave the value untyped even if the variable is.
- // The second half of the pair is the storage variable.
+ // If typed is false, leave the value untyped even if the variable is. If
+ // aliased is false, then don't consider aliases (used by the variable
+ // override machinery where the aliases chain is repurrposed for something
+ // else). The second half of the pair is the storage variable.
//
pair<const value_data*, const variable&>
- lookup (const variable&, bool typed = true) const;
+ lookup (const variable&, bool typed = true, bool aliased = true) const;
pair<value_data*, const variable&>
lookup_to_modify (const variable&, bool typed = true);