summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-26 08:21:58 +0800
committerGitHub <[email protected]>2025-09-26 08:21:58 +0800
commitadf16d85e19b8d9eb6bfce0feb4cd3509d7c95fb (patch)
tree1c70142f0ccec6bfa8bcd88b5bc4cd2e9dce4039
parent392b96a3e210818bebadd88f1b7ed386037e3deb (diff)
Update package.lua
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index e3ccef403..4b0ddd036 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1411,7 +1411,7 @@ function _instance:has_tool(toolkind, ...)
local target_utils = package._target_utils
if target_utils == nil then
target_utils = sandbox_module.import("private.utils.target", {anonymous = true})
- target._target_utils = target_utils
+ package._target_utils = target_utils
end
local _, toolname = self:tool(toolkind)
return target_utils.has_tool(toolname, table.pack(...))