summaryrefslogtreecommitdiff
path: root/xmake/core/tool/compiler.lua
diff options
context:
space:
mode:
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