]> git.tdb.fi Git - builder.git/commitdiff
Don't complain about missing executable if a tool has no command
authorMikko Rasa <tdb@tdb.fi>
Sat, 24 Dec 2022 12:12:53 +0000 (14:12 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 24 Dec 2022 12:12:53 +0000 (14:12 +0200)
This is the case for internal tools.

source/tool.cpp

index 6e2b21431fc5d1808fef9fd691ccd83ff1bd3275..28523f677e57bd697d9b2b85ad39d9bcb9461747 100644 (file)
@@ -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));