aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.hxx
diff options
context:
space:
mode:
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);