From ad7a01c625f1c381374850c280d7c9e87b5ec062 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 1 Mar 2023 23:15:58 +0800 Subject: improve toolchain list #3436 --- xmake/actions/config/xmake.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/actions/config/xmake.lua b/xmake/actions/config/xmake.lua index 861c0531d..464afa662 100644 --- a/xmake/actions/config/xmake.lua +++ b/xmake/actions/config/xmake.lua @@ -135,8 +135,12 @@ function _target_values(complete, opt) return import("private.utils.complete_helper.targets")(complete, opt) end +-- the toolchains is too much, so we just show all for menuconf and auto-complete mode. +-- @see https://github.com/xmake-io/xmake/issues/3436 +-- function _toolchain_values(complete, opt) - if complete then + opt = opt or {} + if complete or opt.menuconf then import("core.tool.toolchain") return toolchain.list() end -- cgit v1.3.1