diff options
| author | Arthur LAURENT <[email protected]> | 2024-01-31 14:06:30 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-01-31 14:06:30 +0100 |
| commit | a5fb58f0db2bea436f89df71b8b4b3b14af6d5b9 (patch) | |
| tree | 9927da1a0a4f4fdad5578aa23618daa4beb55e69 /xmake/rules/c++/modules/modules_support/msvc | |
| parent | 0b37f42437f79611c7b30503eaa920a918974dd5 (diff) | |
improve module cmdline print
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc/builder.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc/builder.lua b/xmake/rules/c++/modules/modules_support/msvc/builder.lua index 00326143e..13e40830d 100644 --- a/xmake/rules/c++/modules/modules_support/msvc/builder.lua +++ b/xmake/rules/c++/modules/modules_support/msvc/builder.lua @@ -82,12 +82,13 @@ function _compile(target, flags, sourcefile) local flags = table.join(compflags or {}, flags) -- trace - vprint(compinst:program(), table.unpack(flags)) + if option.get("verbose") then + print(os.args(table.join(compinst:program(), flags))) + end if not dryrun then -- do compile - local _, err = os.iorunv(compinst:program(), flags, {envs = msvc:runenvs()}) - assert(err, err) + os.vrunv(compinst:program(), flags, {envs = msvc:runenvs()}) end end |
