summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-10 07:55:20 +0800
committerruki <[email protected]>2022-09-10 07:55:20 +0800
commit604f6fc19a82797c58361f86a1adf07a8f68677b (patch)
tree2df449b43ce737fbe92b68e1831d986a5d886c6d
parentab747804e6d647b92f67bd71c93b59b518215786 (diff)
fix dead-loop for windows
-rw-r--r--xmake/core/base/os.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 01d77428d..592e4d2a8 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -776,7 +776,8 @@ function os.execv(program, argv, opt)
-- trace process
if os._is_tracing_process() then
- utils.cprint("%s: ${color.dump.string}%s %s${clear}", proc, filename, argv and os.args(argv) or "")
+ -- we cannot use cprint, it will cause dead-loop on windows, winos.version/os.iorunv
+ utils.print("%s: %s %s", proc, filename, argv and os.args(argv) or "")
end
-- wait process