From: Mikko Rasa Date: Sat, 24 Dec 2022 12:12:53 +0000 (+0200) Subject: Don't complain about missing executable if a tool has no command X-Git-Url: http://git.tdb.fi/?p=builder.git;a=commitdiff_plain;h=40ab4f61eaf7fc14fc6d1c2ea5eecee21882893a Don't complain about missing executable if a tool has no command This is the case for internal tools. --- diff --git a/source/tool.cpp b/source/tool.cpp index 6e2b214..28523f6 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));