Skip to content

Commit 388d116

Browse files
committed
fix toolchain config for check flags
1 parent c04fe10 commit 388d116

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xmake/core/tool/builder.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ function builder:_add_flags_from_argument(flags, target, args)
309309
return values, extras
310310
end,
311311
toolchain = function (name)
312+
if target and target.toolconfig then
313+
return target:toolconfig(name)
314+
end
312315
local plat, arch
313316
if target and target.plat then
314317
plat = target:plat()

0 commit comments

Comments
 (0)