xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.87k stars 776 forks source link

How to set llvm-rc's options on msys2/clangarm64? #5349

Closed rel1ve closed 2 months ago

rel1ve commented 2 months ago

你在什么场景下需要该功能?

on msys2/clangarm64, I need compile *.rc file. If rc file contains chinese string, llvm-rc failed.

error: llvm-rc: Error in VERSIONINFO statement (ID 1): Non-ASCII 8-bit codepoint () can't be interpreted in the current codepage

So, I need call "llvm-rc -C65001 xxx.rc". How to do this in xmake?

描述可能的解决方案

N/A

描述你认为的候选方案

No response

其他信息

No response

waruqi commented 2 months ago
add_mrcflags("-C65001", {force = true})