diff options
| author | Arthur LAURENT <[email protected]> | 2022-12-26 16:35:03 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-12-26 16:35:03 +0100 |
| commit | 91bfb7d00181535c75279fe7ed7fee592538c76d (patch) | |
| tree | d16751868cd3bc4197d44b3cf0875887887f5c00 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | 02fb7ef69e78a5d6a8e0066f8866684533836ac3 (diff) | |
fix #3205
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index 8154742dd..1a97e3de5 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -500,6 +500,8 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op local _flags = table.join(flags, requiresflags or {}) if provide or common.has_module_extension(cppfile) then + if not common.memcache():get2(name or cppfile, "compiling") then + common.memcache():set2(name or cppfile, "compiling", true) _build_modulefile(target, cppfile, { objectfile = objectfile, dependfile = dependfile, @@ -507,6 +509,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op flags = _flags, progress = (index * 100) / total}) _add_objectfile_to_link_arguments(target, path(objectfile)) + end elseif requiresflags then requiresflags = get_requiresflags(target, module.requires) target:fileconfig_add(cppfile, {force = {cxxflags = table.join(flags, requiresflags)}}) |
