Replies: 2 comments 1 reply
-
|
https://xmake.io/zh/api/description/project-target.html#set-encodings |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
发现了这个 if is_plat("windows") then
add_defines("FLAG_PLATFORM_WINDOWS")
add_cxxflags("/utf-8", {tools = {"clang_cl", "cl"}})
end |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
配置的倒数第4行,如果发现编译工具是msvc,那么增加参数"/utf-8"。因为msvc默认把代码文件格式按cp936解析的,所以需要编译时强制指定文件的字符格式。要怎么实现?
Beta Was this translation helpful? Give feedback.
All reactions