summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-02-12 12:07:48 +0100
committerArthur LAURENT <[email protected]>2024-02-12 12:08:44 +0100
commiteca1b25949b70d326cb698fdca9db81c3dbc4aea (patch)
tree9f092de3b820132d02a808c695d5cca095d38bac /xmake/rules/c++/modules
parent1a6c4c2a93c80d6ed17a70100f62b221b3730000 (diff)
fix incremental compilation for msvc
Diffstat (limited to 'xmake/rules/c++/modules')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc/builder.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc/builder.lua b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
index 9fce72e70..1259019ba 100644
--- a/xmake/rules/c++/modules/modules_support/msvc/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
@@ -283,7 +283,7 @@ function make_module_buildjobs(target, batchjobs, job_name, deps, opt)
local build
if provide or compiler_support.has_module_extension(opt.cppfile) then
- build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})
+ build = should_build(target, opt.cppfile, bmifile, {name = name, objectfile = opt.objectfile, requires = opt.module.requires})
-- needed to detect rebuild of dependencies
if provide and build then
@@ -298,7 +298,7 @@ function make_module_buildjobs(target, batchjobs, job_name, deps, opt)
-- for cpp file we need to check after appendings the flags
if build == nil then
- build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})
+ build = should_build(target, opt.cppfile, bmifile, {name = name, objectfile = opt.objectfile, requires = opt.module.requires})
end
local dependfile = target:dependfile(bmifile or opt.objectfile)
@@ -365,7 +365,7 @@ function make_module_buildcmds(target, batchcmds, opt)
local build
if provide or compiler_support.has_module_extension(opt.cppfile) then
- build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})
+ build = should_build(target, opt.cppfile, bmifile, {name = name, objectfile = opt.objectfile, requires = opt.module.requires})
-- needed to detect rebuild of dependencies
if provide and build then
@@ -380,7 +380,7 @@ function make_module_buildcmds(target, batchcmds, opt)
-- for cpp file we need to check after appendings the flags
if build == nil then
- build = should_build(target, opt.cppfile, bmifile, {objectfile = opt.objectfile, requires = opt.module.requires})
+ build = should_build(target, opt.cppfile, bmifile, {name = name, objectfile = opt.objectfile, requires = opt.module.requires})
end
if build then