summaryrefslogtreecommitdiff
path: root/xmake/core/tool
diff options
context:
space:
mode:
authorruki <[email protected]>2024-02-26 23:55:23 +0800
committerruki <[email protected]>2024-02-26 23:55:23 +0800
commit3b8f2a5de39f026e17694eaad625ea8190501665 (patch)
treeee5b825ea47922b24c67fdf63be3886ce5076df4 /xmake/core/tool
parent76af94c04ba55dfe7a5087ce76dfeba4a709ba46 (diff)
fix toolchain formats #4769
Diffstat (limited to 'xmake/core/tool')
-rw-r--r--xmake/core/tool/toolchain.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/tool/toolchain.lua b/xmake/core/tool/toolchain.lua
index 620b862d5..057153ca7 100644
--- a/xmake/core/tool/toolchain.lua
+++ b/xmake/core/tool/toolchain.lua
@@ -156,6 +156,12 @@ function _instance:kind()
return self:info():get("kind")
end
+-- get toolchain formats, we must set it in description scope
+-- @see https://github.com/xmake-io/xmake/issues/4769
+function _instance:formats()
+ return self:info():get("formats")
+end
+
-- is cross-compilation toolchain?
function _instance:is_cross()
if self:kind() == "cross" then