diff options
| author | ruki <[email protected]> | 2020-05-22 22:50:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-22 11:04:24 +0800 |
| commit | adad9bc3ad159e5cf327d2058ff212c831fedcfd (patch) | |
| tree | 6896dfc0a8d26e411f59cae1e6bedc396fb9d6df /xmake/actions/config/xmake.lua | |
| parent | f216efbfd66a9e72ed423d34f28c17243190ac70 (diff) | |
improve toolchains values
Diffstat (limited to 'xmake/actions/config/xmake.lua')
| -rw-r--r-- | xmake/actions/config/xmake.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/actions/config/xmake.lua b/xmake/actions/config/xmake.lua index 89e739e88..621037f53 100644 --- a/xmake/actions/config/xmake.lua +++ b/xmake/actions/config/xmake.lua @@ -158,8 +158,13 @@ task("config") , " - run `xmake show -l toolchains` to get all toolchains" , values = function (complete, opt) if complete then + import("core.project.project") import("core.platform.platform") - return platform.toolchains() + local names = table.copy(platform.toolchains()) + for name, _ in pairs(project.toolchains()) do + table.insert(names, name) + end + return names end end } |
