From 396cb8f577cd6e6ae028b812d930bc02fd8b23fa Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Wed, 14 May 2025 18:40:28 +0200 Subject: (C++ modules support) cache patched sourcebatch and save localcache only one time --- xmake/rules/c++/modules/config.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmake/rules/c++/modules/config.lua') 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() -- cgit v1.3.1