+void Tool::prepare()
+{
+ if(prepared)
+ return;
+
+ prepared = true;
+ do_prepare();
+}
+
+void Tool::set_executable(const string &command, bool cross)
+{
+ if(cross && architecture->is_cross())
+ return set_executable(format("%s-%s", architecture->get_cross_prefix(), command), false);
+
+ executable = builder.get_vfs().find_binary(command);
+ if(!executable)
+ problems.push_back(format("Can't find executable %s", command));
+}
+