diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-24 09:51:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-24 14:52:43 +0200 |
commit | 68f96f9213e849d0d7c4cedf3edeaec99743ee27 (patch) | |
tree | 271913d74c906971cac555319f5e14d0c66e0c16 /build/target.txx | |
parent | 0d5234f4aefd3cc5b5948cc1b9dd009e50046f5e (diff) |
New variable architecture
Diffstat (limited to 'build/target.txx')
-rw-r--r-- | build/target.txx | 6 |
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)); } } |