diff options
| author | ruki <[email protected]> | 2020-05-22 00:46:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-21 22:36:39 +0800 |
| commit | 90e7778e33d39bb86d6b79084a5cea12b88238fe (patch) | |
| tree | 6c1007271491e9cf13ba105ea3473b1b6df65205 | |
| parent | 3f25af48131cf74e2ce5dc291b7427a2b3a48e01 (diff) | |
improve help for toolchains
| -rw-r--r-- | xmake/actions/config/xmake.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmake/actions/config/xmake.lua b/xmake/actions/config/xmake.lua index 2756a3bf1..89e739e88 100644 --- a/xmake/actions/config/xmake.lua +++ b/xmake/actions/config/xmake.lua @@ -152,9 +152,15 @@ task("config") , " - sdk/lib" , " - sdk/include" } , {nil, "toolchain", "kv", nil, "The Toolchain Name" + , "e.g. " + , " - xmake f --toolchain=clang" + , " - xmake f --toolchain=[cross|llvm|sdcc ..] --sdk=/xxx" + , " - run `xmake show -l toolchains` to get all toolchains" , values = function (complete, opt) - import("core.platform.platform") - return platform.toolchains() + if complete then + import("core.platform.platform") + return platform.toolchains() + end end } -- show language menu options |
