aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/rule
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/cxx/rule
parentdf50091259a34fa4718f38c0e3b7b64f6e2469ac (diff)
Implement rule chaining for cxx::link
Diffstat (limited to 'build/cxx/rule')
-rw-r--r--build/cxx/rule10
1 files changed, 8 insertions, 2 deletions
diff --git a/build/cxx/rule b/build/cxx/rule
index 8924c7c..cf9ee51 100644
--- a/build/cxx/rule
+++ b/build/cxx/rule
@@ -22,8 +22,11 @@ namespace build
class compile: public rule
{
public:
+ virtual void*
+ match (target&, const std::string& hint) const;
+
virtual recipe
- match (target&, bool single, std::string& hint) const;
+ select (target&, void*) const;
static target_state
update (target&);
@@ -36,8 +39,11 @@ namespace build
class link: public rule
{
public:
+ virtual void*
+ match (target&, const std::string& hint) const;
+
virtual recipe
- match (target&, bool single, std::string& hint) const;
+ select (target&, void*) const;
static target_state
update (target&);