summaryrefslogtreecommitdiff
path: root/xmake/core/project/target.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-06 00:50:32 +0800
committerruki <[email protected]>2020-10-06 00:50:32 +0800
commit461f42144aae7ab04d1c342d63ade05eda7a4338 (patch)
tree915575b1a8d92c5d4d3dce1c6a3069fded12667b /xmake/core/project/target.lua
parent6576473af7c58290402609c460eb1b1062f75d34 (diff)
fix load targets
Diffstat (limited to 'xmake/core/project/target.lua')
-rw-r--r--xmake/core/project/target.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua
index ab6a90b51..af62b667b 100644
--- a/xmake/core/project/target.lua
+++ b/xmake/core/project/target.lua
@@ -84,7 +84,7 @@ end
-- load rules
function _instance:_load_rules(suffix)
- for _, r in pairs(self:orderules()) do
+ for _, r in ipairs(self:orderules()) do
local ok, errors = self:_load_rule(r, suffix)
if not ok then
return false, errors