xmake-io / xmake

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

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

Closed rel1ve closed 4 months ago

rel1ve commented 4 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 4 months ago
add_mrcflags("-C65001", {force = true})