From 22fcfc64078f4ad04a9ecf5af30adaf7dae199e5 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 11 May 2025 18:31:00 +0800 Subject: fix toolchain.tool --- xmake/core/tool/toolchain.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua index e5a7626c2..c24233347 100644 --- a/xmake/core/tool/toolchain.lua +++ b/xmake/core/tool/toolchain.lua @@ -521,6 +521,11 @@ function _instance:_checktool(toolkind, toolpath) if tool then program = tool.program toolname = toolname or tool.name + else + -- we need reset result if not found + -- https://github.com/xmake-io/xmake/discussions/6415#discussioncomment-13099816 + program = nil + toolname = nil end -- get tool description from the tool kind -- cgit v1.3.1