diff options
| author | ruki <[email protected]> | 2025-05-12 14:30:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-12 14:30:44 +0800 |
| commit | 9ecfe9b05e0891ea06f834b8ca75f2433504ce31 (patch) | |
| tree | 0acdbb0991ccb32cecc11160bd8d06bf0f5b9e74 /xmake/modules | |
| parent | 5a580f088db2e75271f133e68d549102fa334486 (diff) | |
| parent | 3ba28a72239a8d23d13cd577437e871eaebc155a (diff) | |
Merge pull request #6423 from Arthapz/improve-module-format-output
(C++ modules support) Improve module format output
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/utils/batchcmds.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
