summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-10-13 22:49:19 +0800
committerruki <[email protected]>2025-10-13 22:49:19 +0800
commite8c4a4499ca1aaac6db60173f4ee02d0ab9f74f6 (patch)
treed3dc719a397424e9dc75d358153379d3bf289848
parent896af38a1574304b2aad2894b6bc6aa6545f98b9 (diff)
fix force flag
-rw-r--r--xmake/core/tool/builder.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index bc7e995a4..e6c649580 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -168,6 +168,7 @@ function builder:_add_flags_from_flagkind(flags, target, flagkind, opt)
flag = target_utils.flag_belong_to_tool(flag, self, extraconf)
if flag then
if extraconf then
+ local flagconf = extraconf[flag]
-- @note we need join the single flag with shallow mode, aboid expand table values
-- e.g. add_cflags({"-I", "/tmp/xxx foo"}, {force = true, expand = false})
if flagconf and flagconf.force then