aboutsummaryrefslogtreecommitdiff
path: root/build/scope
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-18 14:41:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-18 14:41:45 +0200
commit63e7a4a77cb8ceed7b42561fe3202b0b48d86db6 (patch)
treebde5a79522225f32ec188ba46d0834486c30f00f /build/scope
parent28c82c861e38fe05a25e916563e0551ed8fce91e (diff)
Move path and filesystem from build2 to libbutl
Diffstat (limited to 'build/scope')
-rw-r--r--build/scope11
1 files changed, 5 insertions, 6 deletions
diff --git a/build/scope b/build/scope
index 7dec7a2..5266370 100644
--- a/build/scope
+++ b/build/scope
@@ -9,8 +9,9 @@
#include <unordered_set>
#include <unordered_map>
-#include <build/path>
-#include <build/path-map>
+#include <butl/path-map>
+
+#include <build/types>
#include <build/variable>
#include <build/prerequisite>
#include <build/operation>
@@ -133,7 +134,8 @@ namespace build
temp_scope (scope& p) {path_ = p.path_; parent_ = &p; root_ = p.root_;}
};
- class scope_map: public dir_path_map<scope>
+ using scope_map_base = butl::dir_path_map<scope>;
+ class scope_map: public scope_map_base
{
public:
// Note that we assume the first insertion into the map is that
@@ -160,9 +162,6 @@ namespace build
//
return find (dir_path (p.string ()));
}
-
- private:
- typedef dir_path_map<scope> base;
};
extern scope_map scopes;