aboutsummaryrefslogtreecommitdiff
path: root/build2/version/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/version/rule.cxx')
-rw-r--r--build2/version/rule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/version/rule.cxx b/build2/version/rule.cxx
index a9d62ba..ceeb003 100644
--- a/build2/version/rule.cxx
+++ b/build2/version/rule.cxx
@@ -281,7 +281,7 @@ namespace build2
// Perform substitutions for the project itself (normally the version.*
// variables but we allow anything set on the root scope).
//
- auto subst_self = [&rs] (const location& l, const string& s)
+ auto subst_self = [&rs, &t] (const location& l, const string& s)
{
if (lookup x = rs.vars[s])
{
@@ -291,7 +291,7 @@ namespace build2
return convert<string> (
functions.call (
- "string", vector_view<value> (&v, 1), l));
+ t.base_scope (), "string", vector_view<value> (&v, 1), l));
}
else
fail (l) << "undefined project variable '" << s << "'" << endf;