diff options
| author | Arthur LAURENT <[email protected]> | 2022-12-01 16:09:08 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-12-01 16:09:08 +0100 |
| commit | 4554eaf6b7aa25027c49803dc5288fdc272c3363 (patch) | |
| tree | 220eabeaf93a0387023f13922a70912b2e9f6cd0 | |
| parent | 0760075dfdc49d14aaf122f9a232c6cb70f75263 (diff) | |
support incremental private module build
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc.lua | 2 | ||||
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index aae0e2aa5..379aa517c 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -503,7 +503,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op if common.has_module_extension(module.cppfile) then _build_modulefile(target, module.cppfile, { objectfile = objectfile, - dependfile = target:dependfile(module.cppfile), + dependfile = target:dependfile(objectfile), requiresflags = requiresflags, progress = (index * 100) / total}) target:add("objectfiles", objectfile) diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index 78a56976e..d02512e59 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -430,7 +430,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op job = batchjobs:newjob(m.cppfile, function(index, total) _build_modulefile(target, m.cppfile, { objectfile = objectfile, - dependfile = target:dependfile(m.cppfile), + dependfile = target:dependfile(objectfile), progress = (index * 100) / total}) target:add("objectfiles", objectfile) end) diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index ec59421c0..d9f3019d6 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -509,7 +509,7 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op if common.has_module_extension(module.cppfile) then _build_modulefile(target, module.cppfile, { objectfile = objectfile, - dependfile = target:dependfile(module.cppfile), + dependfile = target:dependfile(objectfile), requiresflags = requiresflags, progress = (index * 100) / total}) target:add("objectfiles", objectfile) |
