From 3ba28a72239a8d23d13cd577437e871eaebc155a Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Mon, 12 May 2025 03:49:31 +0200 Subject: (C++ modules support) normalize module progress format with regular C++ --- xmake/modules/private/utils/batchcmds.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xmake/modules/private/utils/batchcmds.lua') diff --git a/xmake/modules/private/utils/batchcmds.lua b/xmake/modules/private/utils/batchcmds.lua index bd3350954..8334475b9 100644 --- a/xmake/modules/private/utils/batchcmds.lua +++ b/xmake/modules/private/utils/batchcmds.lua @@ -308,6 +308,7 @@ function batchcmds:compilev(argv, opt) -- bind target if exists opt = opt or {} opt.target = self._TARGET + opt.verbose = (opt.verbose == nil) and true or opt.verbose -- load compiler and get compilation command local compiler_inst = opt.compiler @@ -337,7 +338,11 @@ function batchcmds:compilev(argv, opt) end -- add compilation command and bind run environments of compiler - self:vrunv(compiler_inst:program(), argv, {envs = table.join(compiler_inst:runenvs(), opt.envs)}) + if opt.verbose then + self:vrunv(compiler_inst:program(), argv, {envs = table.join(compiler_inst:runenvs(), opt.envs)}) + else + self:runv(compiler_inst:program(), argv, {envs = table.join(compiler_inst:runenvs(), opt.envs)}) + end end -- add command: linker.link -- cgit v1.3.1