Skip to content

Commit

Permalink
fix link cache xmake-io#5360
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 19, 2024
1 parent 22df8e0 commit 41a732a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xmake/core/tool/linker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down

0 comments on commit 41a732a

Please sign in to comment.