summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/gcc.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-08-05 05:34:45 +0200
committerArthur LAURENT <[email protected]>2022-08-05 05:34:45 +0200
commit913fecaf3b83198105cd56d10156b1adbc901a7e (patch)
tree0569d487ccb7e39386976dce0dd7f6ad4224412e /xmake/rules/c++/modules/modules_support/gcc.lua
parent279689863b3ced10d7d1639b77ec57c70db11fde (diff)
Use table.insert instead of table.append
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/gcc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua
index c23ced122..700e92210 100644
--- a/xmake/rules/c++/modules/modules_support/gcc.lua
+++ b/xmake/rules/c++/modules/modules_support/gcc.lua
@@ -169,7 +169,7 @@ 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.append(bmifiles, bmifile)
+ table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end
batchcmds:set_depmtime(depmtime)
@@ -221,7 +221,7 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt)
batchcmds:add_depfiles(headerunit.path)
end
- table.append(bmifiles, bmifile)
+ table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end
batchcmds:set_depmtime(depmtime)
@@ -256,7 +256,7 @@ function build_modules(target, batchcmds, objectfiles, modules, opt)
batchcmds:add_depfiles(provide.sourcefile)
end
- table.append(bmifiles, bmifile)
+ table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end