summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/platform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
-rw-r--r--xmake/scripts/platform/platform.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua
index e968137fd..01728106b 100644
--- a/xmake/scripts/platform/platform.lua
+++ b/xmake/scripts/platform/platform.lua
@@ -195,7 +195,7 @@ function platform.archs(plat)
local p = platform._load(plat)
if p and p._ARCHS then
for _, arch in ipairs(p._ARCHS) do
- archs[table.getn(archs) + 1] = arch
+ table.insert(archs, arch)
end
end
@@ -245,11 +245,11 @@ function platform.menu(action)
local name = option[2]
if name then
if not exist[name] then
- menus[table.getn(menus) + 1] = option
+ table.insert(menus, option)
exist[name] = true
end
else
- menus[table.getn(menus) + 1] = option
+ table.insert(menus, option)
end
end
end