aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-18 15:44:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:35:29 +0200
commit49c6210a1ae21b6722d513bd35ba90ee1fec3170 (patch)
tree217a90de6b38631844fe004e335aab0e44267d18 /libbuild2/rule.hxx
parent5910fbb854d7aa957091aa48a248b2de239eb558 (diff)
Integrate buildscript running into recipe default_action()
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r--libbuild2/rule.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx
index 8799b83..a3d54e7 100644
--- a/libbuild2/rule.hxx
+++ b/libbuild2/rule.hxx
@@ -184,14 +184,12 @@ namespace build2
using script_type = build::script::script;
- adhoc_script_rule (script_type&& s,
- optional<string> d,
- const location& l, size_t b)
- : adhoc_rule (l, b), script (move (s)), diag (move (d)) {}
+ adhoc_script_rule (optional<string> d, const location& l, size_t b)
+ : adhoc_rule (l, b), diag (move (d)) {}
public:
- const script_type script;
const optional<string> diag; // Command name for low-verbosity diag.
+ script_type script;
};
// Ad hoc C++ rule.