summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/config.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-05-14 18:40:28 +0200
committerArthur LAURENT <[email protected]>2025-05-18 16:00:00 +0200
commit396cb8f577cd6e6ae028b812d930bc02fd8b23fa (patch)
treec2290924818865bc3d57c3d801886cf28d3b0d98 /xmake/rules/c++/modules/config.lua
parentabe7d65a22d1b8df441c7246108cdd70f66d8657 (diff)
(C++ modules support) cache patched sourcebatch and save localcache only one time
Diffstat (limited to 'xmake/rules/c++/modules/config.lua')
-rw-r--r--xmake/rules/c++/modules/config.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/config.lua b/xmake/rules/c++/modules/config.lua
index 589413532..214f4e358 100644
--- a/xmake/rules/c++/modules/config.lua
+++ b/xmake/rules/c++/modules/config.lua
@@ -76,6 +76,11 @@ function main(target)
target:add("files")
end
+ local memcache = support.memcache()
+ local targets = memcache:get("targets") or {}
+ targets[target:fullname()] = {}
+ targets[target:fullname()].finished_parsing = false
+ memcache:set("targets", targets)
-- moduleonly modules are implicitly public
if target:is_moduleonly() then
local sourcebatches = target:sourcebatches()