summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-14 23:39:57 +0800
committerruki <[email protected]>2024-08-23 08:14:31 +0800
commit388d116ef1ee6bd62c498389ea1efa618d9a2a84 (patch)
tree431bd8ab8c8502a512aeb02617de0d60c06f03b0
parentc04fe1062f5443425629b441a60f7856e1a5cb00 (diff)
fix toolchain config for check flags
-rw-r--r--xmake/core/tool/builder.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 92a17b68b..54652326d 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -309,6 +309,9 @@ function builder:_add_flags_from_argument(flags, target, args)
return values, extras
end,
toolchain = function (name)
+ if target and target.toolconfig then
+ return target:toolconfig(name)
+ end
local plat, arch
if target and target.plat then
plat = target:plat()