From 40ab4f61eaf7fc14fc6d1c2ea5eecee21882893a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 24 Dec 2022 14:12:53 +0200 Subject: [PATCH] Don't complain about missing executable if a tool has no command This is the case for internal tools. --- source/tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.45.2