summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-08-26 13:18:28 +0800
committerGitHub <[email protected]>2021-08-26 13:18:28 +0800
commit0cd89e799e3a1783d88bdc461a6008c90104d78e (patch)
tree4362ede3dfb57830ac59507d9341f5d30c10e399
parent42586ef30167d76c26e87095420fc5780e9d9826 (diff)
Update menuconf.lua
-rw-r--r--xmake/actions/config/menuconf.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/actions/config/menuconf.lua b/xmake/actions/config/menuconf.lua
index 2f8706e4e..8ca87d918 100644
--- a/xmake/actions/config/menuconf.lua
+++ b/xmake/actions/config/menuconf.lua
@@ -253,6 +253,7 @@ function app:_basic_configs(cache)
if type(values) == "function" then
values = values(false, {menuconf = true})
end
+ values = table.wrap(values)
for idx, value in ipairs(values) do
if default == value then
default = idx
@@ -331,6 +332,7 @@ function app:_project_configs(cache)
local values = opt:get("values")
if values then
kind = "choice"
+ values = table.wrap(values)
for idx, value in ipairs(values) do
if default == value then
default = idx