Skip to content

Commit

Permalink
Merge pull request #5076 from xmake-io/tool
Browse files Browse the repository at this point in the history
fix package tool #5069
  • Loading branch information
waruqi authored May 9, 2024
2 parents 18f302e + a5355cb commit d874b69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xmake/core/package/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,8 @@ end
-- get the program and name of the given tool kind
function _instance:tool(toolkind)
if self:toolchains() then
return toolchain.tool(self:toolchains(), toolkind, {cachekey = "package", plat = self:plat(), arch = self:arch()})
local cachekey = "package_" .. tostring(self)
return toolchain.tool(self:toolchains(), toolkind, {cachekey = cachekey, plat = self:plat(), arch = self:arch()})
else
return platform.tool(toolkind, self:plat(), self:arch())
end
Expand All @@ -1211,7 +1212,8 @@ end
-- get tool configuration from the toolchains
function _instance:toolconfig(name)
if self:toolchains() then
return toolchain.toolconfig(self:toolchains(), name, {cachekey = "package", plat = self:plat(), arch = self:arch()})
local cachekey = "package_" .. tostring(self)
return toolchain.toolconfig(self:toolchains(), name, {cachekey = cachekey, plat = self:plat(), arch = self:arch()})
else
return platform.toolconfig(name, self:plat(), self:arch())
end
Expand Down

0 comments on commit d874b69

Please sign in to comment.