Hello,
I am compiling LLVM 16.0.6 on a Windows machine with Visual Studio. The system language is Simplified Chinese and thus the default code page is 936.
During the compiling process, I encountered some warning and error messages as follows:
In a word, the compiler complains that the source file cannot represent some unicode charaters in code page 936.
I finally fixed the problem by adding -DCMAKE_C_FLAGS="/utf-8" -DCMAKE_CXX_FLAGS="/utf-8" to the cmake command line.
I hope that you can add the '/utf-8' flags directly in the CMakeLists.txt by default.
Hello, I am compiling LLVM 16.0.6 on a Windows machine with Visual Studio. The system language is Simplified Chinese and thus the default code page is 936.
During the compiling process, I encountered some warning and error messages as follows:
In a word, the compiler complains that the source file cannot represent some unicode charaters in code page 936.
I finally fixed the problem by adding
-DCMAKE_C_FLAGS="/utf-8" -DCMAKE_CXX_FLAGS="/utf-8"
to the cmake command line. I hope that you can add the '/utf-8' flags directly in the CMakeLists.txt by default.