summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/gcc.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-12-03 02:16:08 +0100
committerArthur LAURENT <[email protected]>2022-12-03 02:16:08 +0100
commitdd233c5b036b37994b661ef61387cdb3f67eb252 (patch)
treec04a1f41cc3942aaef3e3b80ead41b3f83950793 /xmake/rules/c++/modules/modules_support/gcc.lua
parent9129440bc0f65f7aea3ddd1fbfe4c977bac5eaac (diff)
refactor clang
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index 3888644db..c8a10da86 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -402,13 +402,13 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op
end
end
local moduleinfo = table.copy(provide) or {}
+ local dependfile = (provide and provide.bmi) and target:dependfile(provide.bmi) or target:dependfile(objectfile)
table.join2(moduleinfo, {
name = name or cppfile,
deps = table.keys(module.requires or {}),
sourcefile = cppfile,
job = batchjobs:newjob(name or cppfile, function(index, total)
- local dependfile = (provide and provide.bmi) and target:dependfile(provide.bmi) or target:dependfile(objectfile)
if provide or common.has_module_extension(cppfile) then
_build_modulefile(target, cppfile, {
objectfile = objectfile,
@@ -425,6 +425,8 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op
end
end
+ print(modulesjobs)
+
-- build batchjobs for modules
common.build_batchjobs_for_modules(modulesjobs, batchjobs, opt.rootjob)
end