Skip to content
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

Merged
merged 4 commits into from
Aug 21, 2019
Merged

Improve vs unicode output for link link/cl #542

merged 4 commits into from
Aug 21, 2019

Conversation

waruqi
Copy link
Member

@waruqi 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消息,不要用中文,请用英文描述。

@waruqi waruqi added this to the v2.2.8 milestone Aug 20, 2019
@waruqi waruqi changed the base branch from master to dev August 20, 2019 10:08
@waruqi
Copy link
Member Author

waruqi commented Aug 20, 2019

#528

@OpportunityLiu
Copy link
Member

好像没啥问题

if ok ~= 0 then

-- read errors
local outdata = os.isfile(outpath) and io.readfile(outpath) or nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件编码已知的,把 {encoding="utf16le"} 加上吧,省的哪天有什么奇葩输出把自动探测编码给弄炸了

Copy link
Member Author

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
Copy link
Member

@OpportunityLiu OpportunityLiu Aug 20, 2019

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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些地方的warning都不要了?之前都没注意到

Copy link
Member Author

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的就懒得弄了,暂时没去弄。

@waruqi waruqi merged commit 2c891f5 into dev Aug 21, 2019
@waruqi waruqi deleted the vs_unicode branch August 21, 2019 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants