From 90e7778e33d39bb86d6b79084a5cea12b88238fe Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 22 May 2020 00:46:06 +0800 Subject: improve help for toolchains --- xmake/actions/config/xmake.lua | 10 ++++++++-- 1 file 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 -- cgit v1.3.1