summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.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/compiler.lua
parent729a9e250b90201a9b580909e16f43e2bbc4c23c (diff)
modify config flags
Diffstat (limited to 'xmake/core/tool/compiler.lua')
-rw-r--r--xmake/core/tool/compiler.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/tool/compiler.lua b/xmake/core/tool/compiler.lua
index e78710a8d..ff8ce6a5d 100644
--- a/xmake/core/tool/compiler.lua
+++ b/xmake/core/tool/compiler.lua
@@ -339,9 +339,6 @@ function compiler:compflags(opt)
self:_add_flags_from_compiler(flags, targetkind)
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)
@@ -359,6 +356,9 @@ function compiler:compflags(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