summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/gcc.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-08-05 05:38:34 +0200
committerArthur LAURENT <[email protected]>2022-08-05 05:38:34 +0200
commit08bf176c09948d0a9662ca72b804e42e90ad341d (patch)
treee53e1f0f7777ea484e5f4b8072f0905ad8d40096 /xmake/rules/c++/modules/modules_support/gcc.lua
parent913fecaf3b83198105cd56d10156b1adbc901a7e (diff)
Remove incorrect usage of set_depcache
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index 700e92210..ee4013d3e 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -159,7 +159,6 @@ function generate_stl_headerunits(target, batchcmds, headerunits, opt)
-- build headerunits
local projectdir = os.projectdir()
- local bmifiles = {}
local depmtime = 0
for i, headerunit in ipairs(headerunits) do
local bmifile = path.join(stlcachedir, headerunit.name .. get_bmi_extension())
@@ -169,11 +168,9 @@ function generate_stl_headerunits(target, batchcmds, headerunits, opt)
batchcmds:show_progress(opt.progress, "${color.build.object}generating.cxx.headerunit.bmi %s", headerunit.name)
batchcmds:vrunv(compinst:program(), table.join(compinst:compflags({target = target}), args))
end
- table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end
batchcmds:set_depmtime(depmtime)
- batchcmds:set_depcache(target:dependfile(bmifiles))
end
-- generate target user header units
@@ -186,7 +183,6 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt)
-- build headerunits
local projectdir = os.projectdir()
- local bmifiles = {}
local depmtime = 0
for _, headerunit in ipairs(headerunits) do
local file = path.relative(headerunit.path, projectdir)
@@ -221,11 +217,9 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt)
batchcmds:add_depfiles(headerunit.path)
end
- table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end
batchcmds:set_depmtime(depmtime)
- batchcmds:set_depcache(target:dependfile(bmifiles))
end
-- build module files
@@ -239,7 +233,6 @@ function build_modules(target, batchcmds, objectfiles, modules, opt)
-- build modules
local projectdir = os.projectdir()
- local bmifiles = {}
local depmtime = 0
for _, objectfile in ipairs(objectfiles) do
local m = modules[objectfile]
@@ -256,7 +249,6 @@ function build_modules(target, batchcmds, objectfiles, modules, opt)
batchcmds:add_depfiles(provide.sourcefile)
end
- table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end
@@ -266,7 +258,6 @@ function build_modules(target, batchcmds, objectfiles, modules, opt)
end
end
batchcmds:set_depmtime(depmtime)
- batchcmds:set_depcache(target:dependfile(bmifiles))
end
function get_bmi_extension()