-}
-
-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)
- builder.problem(string(), format("Can't find executable %s for tool %s", command, tag));
+ if(!executable && !command.empty())
+ {
+ executable = builder.get_vfs().find_binary(command);
+ if(!executable)
+ problems.push_back(format("Can't find executable %s", command));
+ }