-
-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve vs unicode output for link link/cl #542
Conversation
waruqi
commented
Aug 20, 2019
- Before adding new features and new modules, please go to issues to submit the relevant feature description first.
- Write good commit messages and use the same coding conventions as the rest of the project.
- Please commit code to dev branch and we will merge into master branch in feature
- Ensure your edited codes with four spaces instead of TAB.
- 增加新特性和新模块之前,请先到issues提交相关特性说明,经过讨论评估确认后,再进行相应的代码提交,避免做无用工作。
- 编写友好可读的提交信息,并使用与工程代码相同的代码规范,代码请用4个空格字符代替tab缩进。
- 请提交代码到dev分支,如果通过,我们会在特定时间合并到master分支上。
- 为了规范化提交日志的格式,commit消息,不要用中文,请用英文描述。
好像没啥问题 |
if ok ~= 0 then | ||
|
||
-- read errors | ||
local outdata = os.isfile(outpath) and io.readfile(outpath) or nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件编码已知的,把 {encoding="utf16le"}
加上吧,省的哪天有什么奇葩输出把自动探测编码给弄炸了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
恩 加上了
|
||
-- get output and error data | ||
outfile:close() | ||
local outdata = os.isfile(outpath) and io.readfile(outpath) or nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{encoding="utf16le"}
,下面那个文件不用
local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags, opt) | ||
os.runv(program, argv, {vs_unicode_output = true}) | ||
-- use vstool to link and enable vs_unicode_output @see https://github.com/xmake-io/xmake/issues/528 | ||
vstool.runv(linkargv(self, objectfiles, targetkind, targetfile, flags, opt)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些地方的warning都不要了?之前都没注意到
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link.exe的警告一直就没捕获处理过,cl.exe的警告捕获输出也是后来才加的,那个时候弄完cl,link的就懒得弄了,暂时没去弄。