summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/msvc.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/msvc.lua
parent279689863b3ced10d7d1639b77ec57c70db11fde (diff)
Use table.insert instead of table.append
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 89cc35f6b..22dc4485f 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -142,7 +142,7 @@ function generate_stl_headerunits(target, batchcmds, headerunits, opt)
local flag = {headerunitflag .. ":angle", headerunit.name .. "=" .. headerunit.name .. get_bmi_extension()}
table.join2(flags, flag)
- table.append(bmifiles, bmifile)
+ table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end
batchcmds:set_depmtime(depmtime)
@@ -199,7 +199,7 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt)
table.join2(flags, flag)
target:add("objectfiles", objectfile)
- table.append(bmifiles, bmifile)
+ table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end
batchcmds:set_depmtime(depmtime)
@@ -248,7 +248,7 @@ function build_modules(target, batchcmds, objectfiles, modules, opt)
batchcmds:add_depfiles(provide.sourcefile)
table.join2(bmiflags, {referenceflag, name .. "=" .. path.filename(bmifile)})
- table.append(bmifiles, bmifile)
+ table.insert(bmifiles, bmifile)
depmtime = math.max(depmtime, os.mtime(bmifile))
end