summaryrefslogtreecommitdiff
path: root/xmake/core/package/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-26 00:54:26 +0800
committerruki <[email protected]>2025-09-26 00:54:26 +0800
commitb5eaedb26c78ee4afa4641c78579ff1e65450d6d (patch)
tree292a11c773bb0943145cea5e918ddc005766c1eb /xmake/core/package/package.lua
parent41071f11cb134a124734b922fe51ef6d8f5cfc20 (diff)
fix check cxxflags
Diffstat (limited to 'xmake/core/package/package.lua')
-rw-r--r--xmake/core/package/package.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 0eec73407..663f7d3a0 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1413,7 +1413,8 @@ function _instance:has_tool(toolkind, ...)
target_utils = sandbox_module.import("private.utils.target", {anonymous = true})
target._target_utils = target_utils
end
- return target_utils.has_tool(self, toolkind, ...)
+ local _, toolname = self:tool(toolkind)
+ return target_utils.has_tool(toolname, table.pack(...))
end
-- get the user private data