diff options
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r-- | libbuild2/rule.hxx | 8 |
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. |