aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scope.cxx
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/scope.cxx
parente2e2001260406bcfa0c636e00be3bc34808f8968 (diff)
Don't consider aliasing in variable override lookup
Diffstat (limited to 'libbuild2/scope.cxx')
-rw-r--r--libbuild2/scope.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/scope.cxx b/libbuild2/scope.cxx
index ad01aa7..39aba8f 100644
--- a/libbuild2/scope.cxx
+++ b/libbuild2/scope.cxx
@@ -319,8 +319,12 @@ namespace build2
return lookup_type ();
// Note: using the original as storage variable.
+ // Note: have to suppress aliases since used for something else.
//
- return lookup_type (s->vars.lookup (*o).first, &var, &s->vars);
+ return lookup_type (
+ s->vars.lookup (*o, true /* typed */, false /* aliased */).first,
+ &var,
+ &s->vars);
};
// Return true if a value is from this scope (either target type/pattern-