summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-03 13:53:44 +0800
committerruki <[email protected]>2015-06-03 13:53:44 +0800
commitbcb0d8e7eb53865f627cadd79eb181de34e86f5a (patch)
treeca0300e883af6093b54985e797311d820da68d4c /xmake/scripts/base/project.lua
parent6ba8d0eb8d09d5170242837ef091c04ab4da6047 (diff)
uses table.insert
Diffstat (limited to 'xmake/scripts/base/project.lua')
-rw-r--r--xmake/scripts/base/project.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua
index ce6397163..3fc119330 100644
--- a/xmake/scripts/base/project.lua
+++ b/xmake/scripts/base/project.lua
@@ -98,7 +98,7 @@ function project._make_configs(scope, configs)
local item = scope[k]
-- append it
- item[table.getn(item) + 1] = _v
+ table.insert(item, _v)
end
-- replace configure to scope
elseif scope and not k:startswith("_") then