summaryrefslogtreecommitdiff
path: root/xmake/core/tool/builder.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-24 07:22:42 +0800
committerGitHub <[email protected]>2024-08-24 07:22:42 +0800
commitc80898e12f88abe7df463bc64e0fb6bf081b8cdf (patch)
tree778fc24c5ff2207419f0f06c60fff46b67739d03 /xmake/core/tool/builder.lua
parent3ba77c15ccf34187b6678f277f2dd418433493c8 (diff)
parentd19c47eac0a44b0bfbbf2e4ce7cf98713720a245 (diff)
Merge pull request #5466 from xmake-io/toolchain
Improve to check and load toolchain
Diffstat (limited to 'xmake/core/tool/builder.lua')
-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()