X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.cpp;h=cd002379ccc110c3cc13569563695077bea48b79;hb=c8c51fac9453a677fc3e6932c4730f35e237af89;hp=6e2b21431fc5d1808fef9fd691ccd83ff1bd3275;hpb=d10be3251b2b6605723c6c753a4c9a9ba35c9950;p=builder.git diff --git a/source/tool.cpp b/source/tool.cpp index 6e2b214..cd00237 100644 --- a/source/tool.cpp +++ b/source/tool.cpp @@ -46,7 +46,7 @@ void Tool::prepare() if(!command.empty()) executable = builder.get_vfs().find_binary(command); do_prepare(); - if(!executable) + if(!command.empty() && !executable) { builder.get_logger().log("problems", "Can't find executable %s for %s", command, tag); problems.push_back(format("Can't find executable %s", command)); @@ -62,32 +62,6 @@ string Tool::create_build_signature(const BuildInfo &) const } -Target *SubTool::create_source(const Component &c, const FS::Path &p) const -{ - return parent.create_source(c, p); -} - -Target *SubTool::create_source(const FS::Path &p) const -{ - return parent.create_source(p); -} - -Target *SubTool::create_target(const vector &s, const string &a) -{ - return parent.create_target(s, a); -} - -Target *SubTool::create_install(Target &t) const -{ - return parent.create_install(t); -} - -string SubTool::create_build_signature(const BuildInfo &bi) const -{ - return parent.create_build_signature(bi); -} - - void operator>>(const LexicalConverter &conv, Tool::ProcessingUnit &unit) { const string &str = conv.get();