From b3ed3546872d175fea0f6fa9ac0899b1e218ec00 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Tue, 9 Aug 2022 12:04:18 +0200 Subject: Improve MSVC and clang module build --- xmake/rules/c++/modules/modules_support/common.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmake/rules/c++/modules/modules_support/common.lua') diff --git a/xmake/rules/c++/modules/modules_support/common.lua b/xmake/rules/c++/modules/modules_support/common.lua index 31ab47a81..96468456f 100644 --- a/xmake/rules/c++/modules/modules_support/common.lua +++ b/xmake/rules/c++/modules/modules_support/common.lua @@ -523,7 +523,8 @@ end -- append headerunits objectfiles to link function append_headerunits_objectfiles(target) - local cache = localcache():get("headerunit_objectfiles") or {} + local cachekey = target:name() .. "headerunit_objectfiles" + local cache = localcache():get(cachekey) or {} if target:is_binary() then target:add("ldflags", cache, {force = true}) elseif target:is_static() == "static" then -- cgit v1.3.1