- bool prepared;
- std::list<std::string> problems;
-
- Tool(Builder &, const std::string &);
- Tool(Builder &, const Architecture &, const std::string &);
+ std::function<Task *(const Target &)> run_func;
+ bool prepared = false;
+ std::vector<std::string> problems;
+
+ Tool(Builder &b, const std::string &t): Tool(b, 0, t) { }
+ Tool(Builder &b, const Architecture &a, const std::string &t): Tool(b, &a, t) { }
+private:
+ Tool(Builder &b, const Architecture *a, const std::string &t): builder(b), architecture(a), tag(t) { }