aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/dist/module.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-01 10:00:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-01 10:00:37 +0200
commitf8de93520fd604a3771a2af3ca9564f6085d8baa (patch)
treeed55bf099269efa3453943336c77ce236c2577a6 /libbuild2/dist/module.hxx
parenta6f5ad72f4c751cd62566de227a7cbe89ff3af26 (diff)
Make dist::rule reusable as base
Diffstat (limited to 'libbuild2/dist/module.hxx')
-rw-r--r--libbuild2/dist/module.hxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/libbuild2/dist/module.hxx b/libbuild2/dist/module.hxx
index dbe2a3e..da97939 100644
--- a/libbuild2/dist/module.hxx
+++ b/libbuild2/dist/module.hxx
@@ -11,7 +11,6 @@
#include <libbuild2/variable.hxx>
#include <libbuild2/dist/types.hxx>
-#include <libbuild2/dist/rule.hxx>
#include <libbuild2/export.hxx>
@@ -19,8 +18,7 @@ namespace build2
{
namespace dist
{
- class LIBBUILD2_SYMEXPORT module: public build2::module,
- public rule
+ class LIBBUILD2_SYMEXPORT module: public build2::module
{
public:
static const string name;
@@ -43,9 +41,9 @@ namespace build2
adhoc.push_back (move (f));
}
- // List of postponed prerequisites.
+ // List of postponed prerequisites (see rule for details).
//
- postponed_prerequisites postponed;
+ mutable postponed_prerequisites postponed;
// Distribution post-processing callbacks.
//
@@ -79,8 +77,7 @@ namespace build2
// Implementation details.
//
public:
- module (const variable& v_d_p)
- : rule (postponed), var_dist_package (v_d_p) {}
+ module (const variable& v_d_p): var_dist_package (v_d_p) {}
public:
bool distributed = false; // True if this project is being distributed.