summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-10-20 13:16:07 +0800
committerruki <[email protected]>2016-10-20 13:16:07 +0800
commit380a6bd6bbd7e8d3f9bbfc9461c145793fd90d10 (patch)
tree1cbce41a4cc5bcab8782ea6b36c038e89f88a370 /xmake/core/tool/compiler.lua
parent5c98f1edc2f521fd882d1796bdb043492ce138fe (diff)
fix options order for linking
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index 81c6c5da8..00c50ea3f 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -168,7 +168,7 @@ function compiler:_addflags_from_target(flags, target)
if target.options then
-- add the flags for the target options
- for _, opt in pairs(target:options()) do
+ for _, opt in ipairs(target:options()) do
-- add the flags from the option
self:_addflags_from_target(flags, opt)