aboutsummaryrefslogtreecommitdiff
path: root/build/target.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-24 09:51:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-24 14:52:43 +0200
commit68f96f9213e849d0d7c4cedf3edeaec99743ee27 (patch)
tree271913d74c906971cac555319f5e14d0c66e0c16 /build/target.txx
parent0d5234f4aefd3cc5b5948cc1b9dd009e50046f5e (diff)
New variable architecture
Diffstat (limited to 'build/target.txx')
-rw-r--r--build/target.txx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/target.txx b/build/target.txx
index bded149..a293018 100644
--- a/build/target.txx
+++ b/build/target.txx
@@ -20,9 +20,9 @@ namespace build
const std::string&
target_extension_var (const target_key& tk, scope& s)
{
- auto val (s[var]);
+ auto l (s[var]);
- if (!val)
+ if (!l)
{
diag_record dr;
dr << fail << "no default extension in variable " << var
@@ -42,6 +42,6 @@ namespace build
}
}
- return extension_pool.find (val.as<const std::string&> ());
+ return extension_pool.find (as<std::string> (*l));
}
}