summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-02-08 14:47:39 +0100
committerArthur LAURENT <[email protected]>2024-02-08 14:51:46 +0100
commitb23959e2e56181f021f4f41dd7aaedc3bd8197f3 (patch)
tree7828ae1f39eb489947d8e35c218b7baeb104a271
parent955f2bb283e338e10cb3616c25ed41db9103d6f2 (diff)
fix msvc batchcmds
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc/builder.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc/builder.lua b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
index 015e04db5..c703de478 100644
--- a/xmake/rules/c++/modules/modules_support/msvc/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
@@ -38,6 +38,7 @@ function _make_modulebuildflags(target, provide, bmifile, opt)
local interfaceflag = compiler_support.get_interfaceflag(target)
local internalpartitionflag = compiler_support.get_internalpartitionflag(target)
local ifconly = (not opt.build_objectfile and ifconlyflag)
+ print("AAAAAAAAAAAAAAAA", bmifile, opt.build_objectfile)
local flags
if provide then -- named module
@@ -313,7 +314,7 @@ function make_module_buildcmds(target, batchcmds, opt)
local public = fileconfig and fileconfig.public
local external = fileconfig and fileconfig.external
local build_objectfile = target:kind() == "binary" or (not public and not external)
- local flags = _make_modulebuildflags(target, provide, bmifile, opt.cppfile, {batchcmds = true, build_objectfile = build_objectfile})
+ local flags = _make_modulebuildflags(target, provide, bmifile, {build_objectfile = build_objectfile})
_batchcmds_compile(batchcmds, target, flags, opt.cppfile, opt.objectfile)
else
batchcmds:rm(opt.objectfile) -- force rebuild for .cpp files