Skip to content

Commit

Permalink
Merge pull request #5361 from xmake-io/linkcache
Browse files Browse the repository at this point in the history
fix link cache #5360
  • Loading branch information
waruqi authored Jul 19, 2024
2 parents 2e0fb34 + 41a732a commit 3a8ad70
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 3a8ad70

Please sign in to comment.