#include <algorithm>
+#include <msp/strings/format.h>
+#include "architecture.h"
+#include "builder.h"
#include "tool.h"
using namespace std;
+using namespace Msp;
Tool::Tool(Builder &b, const string &t):
builder(b),
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));
+}
+
SubTool::SubTool(Tool &p):
Tool(p),