From c1d08dbc56d0c8d3346deaba5d6b1946b6d711f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Jul 2016 15:39:52 +0200 Subject: Save config vars in order specified rather than alphabetically This way we can group them semantically which results in easier to understand config.build output. --- build2/variable | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'build2/variable') diff --git a/build2/variable b/build2/variable index 08d0020..e2dc943 100644 --- a/build2/variable +++ b/build2/variable @@ -119,8 +119,6 @@ namespace build2 inline bool operator== (const variable& x, const variable& y) {return x.name == y.name;} - typedef reference_wrapper variable_cref; - // // class value @@ -647,7 +645,8 @@ namespace std namespace butl { template <> - struct compare_prefix: compare_prefix + struct compare_prefix>: + compare_prefix { typedef compare_prefix base; @@ -713,7 +712,9 @@ namespace build2 class variable_map { public: - using map_type = butl::prefix_map; + using map_type = butl::prefix_map, + value, + '.'>; using size_type = map_type::size_type; template -- cgit v1.1