diff options
| author | ruki <[email protected]> | 2024-02-26 23:55:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-26 23:55:23 +0800 |
| commit | 3b8f2a5de39f026e17694eaad625ea8190501665 (patch) | |
| tree | ee5b825ea47922b24c67fdf63be3886ce5076df4 /xmake/core/tool | |
| parent | 76af94c04ba55dfe7a5087ce76dfeba4a709ba46 (diff) | |
fix toolchain formats #4769
Diffstat (limited to 'xmake/core/tool')
| -rw-r--r-- | xmake/core/tool/toolchain.lua | 6 |
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 |
