summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index c34f578df..443e10d43 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -277,9 +277,6 @@ function linker:linkflags(opt)
self:_add_flags_from_linker(flags)
self:_add_flags_from_toolchains(flags, targetkind, target)
- -- add flags from user configuration
- self:_add_flags_from_config(flags)
-
-- add flags from target
self:_add_flags_from_target(flags, target)
@@ -289,6 +286,9 @@ function linker:linkflags(opt)
self:_add_flags_from_argument(flags, target, configs)
end
+ -- add flags from user configuration
+ self:_add_flags_from_config(flags)
+
-- preprocess flags
return self:_preprocess_flags(flags)
end