From 74212589a797ca75e55f92a522e198915c0dbaf6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Dec 2015 15:37:04 +0200 Subject: Use 'extension' variable to resolve extension for file{} We now also check target type/pattern-specific variables. So the new usage is: cli{*}: extension = cli --- build/variable | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build/variable') diff --git a/build/variable b/build/variable index 2aec39d..7976ab9 100644 --- a/build/variable +++ b/build/variable @@ -768,8 +768,13 @@ namespace build // consider its lifetime. // using variable_pattern_map = std::map; - using variable_type_map = std::map, - variable_pattern_map>; + + struct variable_type_map: std::map, + variable_pattern_map> + { + build::lookup + lookup (const target_type&, const string& name, const variable&) const; + }; } #include -- cgit v1.1