aboutsummaryrefslogtreecommitdiff
path: root/build/prerequisite
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-16 14:11:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-16 14:11:14 +0200
commitc106259517d7693ea8e24564bc890fe575d5edcd (patch)
treebbf87f83edeaf60ff3dfa6fff33c6b7504f5318b /build/prerequisite
parentdf50091259a34fa4718f38c0e3b7b64f6e2469ac (diff)
Implement rule chaining for cxx::link
Diffstat (limited to 'build/prerequisite')
-rw-r--r--build/prerequisite12
1 files changed, 11 insertions, 1 deletions
diff --git a/build/prerequisite b/build/prerequisite
index 6c9c171..a14621f 100644
--- a/build/prerequisite
+++ b/build/prerequisite
@@ -19,6 +19,7 @@ namespace build
class scope;
class target;
class target_type;
+ class tracer;
class prerequisite
{
@@ -50,7 +51,16 @@ namespace build
bool
operator< (const prerequisite&, const prerequisite&);
- typedef std::set<prerequisite> prerequisite_set;
+ struct prerequisite_set: std::set<prerequisite>
+ {
+ std::pair<prerequisite&, bool>
+ insert (const target_type&,
+ path dir,
+ std::string name,
+ const std::string* ext,
+ scope&,
+ tracer&);
+ };
}
#endif // BUILD_PREREQUISITE