summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-09-26 00:41:54 +0800
committerruki <[email protected]>2025-09-26 00:41:54 +0800
commit345e80ef3f48d8d07591bc4cecf445556a560cd3 (patch)
tree60a87657c8ecebb90ad55e23de628084f702644d /xmake/core/tool/linker.lua
parent729a9e250b90201a9b580909e16f43e2bbc4c23c (diff)
modify config flags
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