From b23959e2e56181f021f4f41dd7aaedc3bd8197f3 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 8 Feb 2024 14:47:39 +0100 Subject: fix msvc batchcmds --- xmake/rules/c++/modules/modules_support/msvc/builder.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1