From 41a732af032a456352ca7096c6284127fa4a6c6e Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 19 Jul 2024 22:50:32 +0800 Subject: [PATCH] fix link cache #5360 --- xmake/core/tool/linker.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua index 347804eefd5..070c90a9f66 100644 --- a/xmake/core/tool/linker.lua +++ b/xmake/core/tool/linker.lua @@ -133,6 +133,7 @@ function linker.load(targetkind, sourcekinds, target) local plat = linkertool:plat() or config.plat() or os.host() local arch = linkertool:arch() or config.arch() or os.arch() local cachekey = targetkind .. "_" .. linkerinfo.linkerkind .. (linkerinfo.program or "") .. plat .. arch + cachekey = cachekey .. table.concat(sourcekinds, "") -- @see https://github.com/xmake-io/xmake/issues/5360 -- get it directly from cache dirst builder._INSTANCES = builder._INSTANCES or {}