summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-05-13 23:09:19 +0800
committerruki <[email protected]>2023-05-13 23:09:19 +0800
commitc8626425999d369846f5dad8d35567ca240e6780 (patch)
tree0ab305fcf4828079dc54eae601a98e051c162572 /xmake/rules/c++/modules/modules_support/gcc.lua
parent34eb729eb862e7415028c84970f3b2c830d95cd9 (diff)
improve to install modules #3730
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index 5ebcb1128..a528a57ae 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -390,15 +390,12 @@ function build_modules_for_batchjobs(target, batchjobs, objectfiles, modules, op
local fileconfig = target:fileconfig(cppfile)
if fileconfig and fileconfig.install then
batchjobs:addjob(name .. "_metafile", function(index, total)
- local outputdir = common.get_outputdir(target, cppfile)
- local metafilepath = path.join(outputdir, path.filename(cppfile) .. ".meta-info")
+ local metafilepath = common.get_metafile(target, cppfile)
depend.on_changed(function()
progress.show((index * 100) / total, "${color.build.object}generating.module.metadata %s", name)
local metadata = common.generate_meta_module_info(target, name, cppfile, module.requires)
json.savefile(metafilepath, metadata)
-
end, {dependfile = target:dependfile(metafilepath), files = {cppfile}})
-
end, {rootjob = opt.rootjob})
end
end