summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/msvc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-05 00:43:34 +0800
committerruki <[email protected]>2022-08-05 00:43:34 +0800
commitfc011e7ae96d00c209550022ce44f66ec002a474 (patch)
tree99e6631ff385759f7f292ccac323258af247e385 /xmake/rules/c++/modules/modules_support/msvc.lua
parente581f5c19ad1feeed70e26d294c114c48ade00da (diff)
rename sourcebatch to headerunits
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 63e445df9..37bcf0b89 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -110,7 +110,7 @@ function generate_dependencies(target, sourcebatch, opt)
end
-- generate target header units
-function generate_headerunits(target, batchcmds, sourcebatch, opt)
+function generate_headerunits(target, batchcmds, headerunits, opt)
local compinst = target:compiler("cxx")
local toolchain = target:toolchain("msvc")
local vcvars = toolchain:config("vcvars")
@@ -131,7 +131,7 @@ function generate_headerunits(target, batchcmds, sourcebatch, opt)
local objectfiles = {}
local public_flags = {}
local private_flags = {}
- for _, headerunit in ipairs(sourcebatch) do
+ for _, headerunit in ipairs(headerunits) do
if not headerunit.stl then
local file = path.relative(headerunit.path, target:scriptdir())
local objectfile = target:objectfile(file)