diff options
| author | ruki <[email protected]> | 2020-05-22 22:50:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-22 11:01:34 +0800 |
| commit | f216efbfd66a9e72ed423d34f28c17243190ac70 (patch) | |
| tree | aaf35318028c0ef6a434290e35a394c21470ccb7 | |
| parent | 9a3ccbc46480462a7d2a702c8c635af17cd85249 (diff) | |
improve to show toolchains
| -rw-r--r-- | xmake/plugins/show/lists/toolchains.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/plugins/show/lists/toolchains.lua b/xmake/plugins/show/lists/toolchains.lua index 1a288859f..911fd801c 100644 --- a/xmake/plugins/show/lists/toolchains.lua +++ b/xmake/plugins/show/lists/toolchains.lua @@ -20,10 +20,15 @@ -- imports import("core.base.option") +import("core.project.project") import("core.platform.platform") import(".showlist") -- show all toolchains function main() - showlist(platform.toolchains()) + local names = table.copy(platform.toolchains()) + for name, _ in pairs(project.toolchains()) do + table.insert(names, name) + end + showlist(names) end |
