aboutsummaryrefslogtreecommitdiff
path: root/build/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 11:55:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 11:55:27 +0200
commit5cb5b09b198932a0d3bd985fd52fd9fbcb1c2af5 (patch)
treecd4a22d2edba93c0afc01b638ab092ad4596e100 /build/target
parent6434d616da5d75577d142e20e0f9fa430bd625df (diff)
Move some utilities from build2 to libbutl
Diffstat (limited to 'build/target')
-rw-r--r--build/target16
1 files changed, 8 insertions, 8 deletions
diff --git a/build/target b/build/target
index 1770d9c..06aa227 100644
--- a/build/target
+++ b/build/target
@@ -16,6 +16,8 @@
#include <utility> // move()
#include <iterator>
+#include <butl/utility> // compare_c_string
+
#include <build/path>
#include <build/map-key> // map_iterator_adapter
#include <build/timestamp>
@@ -24,7 +26,7 @@
#include <build/operation>
#include <build/target-key>
#include <build/prerequisite>
-#include <build/utility> // compare_*, extension_pool
+#include <build/utility> // extension_pool
namespace build
{
@@ -439,20 +441,18 @@ namespace build
extern target_set targets;
- class target_type_map: public std::map<
+ using target_type_map_base = std::map<
const char*,
std::reference_wrapper<const target_type>,
- compare_c_string>
+ butl::compare_c_string>;
+
+ class target_type_map: public target_type_map_base
{
public:
- typedef std::map<const char*,
- std::reference_wrapper<const target_type>,
- compare_c_string> base;
-
void
insert (const target_type& tt) {emplace (tt.name, tt);}
- using base::find;
+ using target_type_map_base::find;
// Given a name, figure out its type, taking into account extensions,
// special names (e.g., '.' and '..'), or anything else that might be