<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/106476>106476</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLVM build failed on non-English Windows system with Visual Studio
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
YWtheGod
</td>
</tr>
</table>
<pre>
LLVM build failed on non-English Windows system with Visual Studio
Some source file with non-ASCII char will cause build failed.
adding -DCMAKE_C_FLAGS="/source-charset:utf-8" -DCMAKE_CXX_FLAGS="/source-charset:utf-8" -DCMAKE_ASM_FLAGS="/source-charset:utf-8" to cmake command line fixed the problem. it should set in cmakelist.txt by default when using visual studio generator.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyskr9u2zwUxZ-GWi4kMJQcSYMGfXEUBJ89GUjSKeCfK5EtRRoiacdvX8gOkHZrgS7kQP7Ouefg8hDM5BA7svmPbLYZT1H7pfv2GjU-eZUJry7dbveyB5GMVTByY1GBd-C8yx_dZE3Q8Gqc8ucA4RIiznA2UcOLCYlbOMSkjCd0S2h_Ow9-Rgg-LRJhNBZv31e5_vDw_AxS8wXOxlqQPAX8zbj4VYgrZdwE-fZh3___-P7wPuz6pwMpt4QxwoabRb7KBYyk7FMc84Yw9kW8vf010x_2f8xED3LmPxCkn2fuFFjj1swfqCBqhOPihcW5ABMhaJ-sgoARjLth1oRYxI8I4gIKR55shLNGBymsuU-3gsO1YJjQ4cKjX4pMdaVqy5Zn2N3VrGrau5o2me7GinIxykqNdVuiqJFJ2dBSNoKNbUNlZjpGWUUb1lJabmhTlKLmYyPlKHgztlSQiuLMjS2sPc2FX6bMhJCwu6P3VX2fWS7QhusqMebwDNfXtaXNNlu6FcpFmgKp6JotfMlEEy3-gz3L0mI7HeMxkLInbCBsmEzUSRTSz4QNq-HnlR8X_x1lJGy4jhkIGz5znDr2MwAA__9oWASH">