From 40f70328407b66a02fb45484ec290703317fa654 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 11 Aug 2023 00:51:58 +0800 Subject: update comment --- xmake/core/project/target.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xmake/core/project/target.lua b/xmake/core/project/target.lua index 6e49bd7d0..efebba746 100644 --- a/xmake/core/project/target.lua +++ b/xmake/core/project/target.lua @@ -2076,7 +2076,7 @@ function _instance:toolchains() local toolchains = self:_memcache():get("toolchains") if toolchains == nil then - -- load target toolchains + -- load target toolchains first toolchains = {} local target_toolchains = self:get("toolchains") if target_toolchains then @@ -2095,8 +2095,11 @@ function _instance:toolchains() table.insert(toolchains, toolchain_inst) end end - -- load platform toolchains + + -- we need merge target and platform toolchains, + -- because we maybe only set partial toolchains in target, e.g. nasm toolchain table.join2(toolchains, self:platform():toolchains()) + self:_memcache():set("toolchains", toolchains) end return toolchains -- cgit v1.3.1