-
运行xrepo env shell时,如果出现warning,则会导致prompt的探测出问题。现在powershell通过运行 问题:如何在xmake中抑制warning message,或者将warning视为error,或者把warning输出到stderr而不是stdout? |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Aug 24, 2021
Replies: 2 comments 1 reply
-
什么警告,压不了,要么试试 --quiet |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xq114
-
--quiet 下,走 io.write 原始输出接口,绕过 quiet if key == "prompt" then
assert(os.isfile(os.projectfile()), "xmake.lua not found!")
io.write("[" .. path.filename(os.projectdir()) .. "]") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
什么警告,压不了,要么试试 --quiet