diff options
| author | Arthur LAURENT <[email protected]> | 2022-08-09 12:04:18 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-08-10 16:52:51 +0200 |
| commit | b3ed3546872d175fea0f6fa9ac0899b1e218ec00 (patch) | |
| tree | f045794937151f411baf2c2e5b1e712aa5ad201a /xmake/rules/c++/modules/modules_support/common.lua | |
| parent | 6d0a8f98c83d45a89182568f83ef8abec24752b3 (diff) | |
Improve MSVC and clang module build
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/common.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/common.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
