From f8de93520fd604a3771a2af3ca9564f6085d8baa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Dec 2022 10:00:37 +0200 Subject: Make dist::rule reusable as base --- libbuild2/dist/module.hxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'libbuild2/dist/module.hxx') 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 #include -#include #include @@ -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. -- cgit v1.1