From 388d116ef1ee6bd62c498389ea1efa618d9a2a84 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 14 Aug 2024 23:39:57 +0800 Subject: fix toolchain config for check flags --- xmake/core/tool/builder.lua | 3 +++ 1 file changed, 3 insertions(+) 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() -- cgit v1.3.1