diff options
| author | ruki <[email protected]> | 2025-05-21 08:49:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-21 08:49:46 +0800 |
| commit | bcafeff3c75b26de9b156ed7e7b405e385491084 (patch) | |
| tree | 961926aca0f46129d424d6f00856bf222ab83fff /xmake/rules/c++/modules/config.lua | |
| parent | 25b22ca42b29389dd328003c5c6acc8d8af746ba (diff) | |
| parent | e8a3f1e2e212990c9cae7b7702c0d0977e2a3ac5 (diff) | |
Merge pull request #6450 from Arthapz/optimize-module-support
(C++ modules support) Optimize module scanner
Diffstat (limited to 'xmake/rules/c++/modules/config.lua')
| -rw-r--r-- | xmake/rules/c++/modules/config.lua | 5 |
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() |
