From c6927203d5af186728a70de200e263170e49ef8e Mon Sep 17 00:00:00 2001 From: Seto <61304189@qq.com> Date: Wed, 14 Sep 2022 16:41:07 +0000 Subject: [PATCH] Fix the Chinese windows system encoding problem. Bug: dawn:1532 Change-Id: I01d72f07c304c1ac058f58cfc004d5e8595dc7e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/102220 Kokoro: Kokoro Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d0a8f131c..58abed4099 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -329,6 +329,10 @@ function(common_compile_options TARGET) target_link_options(${TARGET} PUBLIC -fsanitize=undefined) endif() endif(COMPILER_IS_LIKE_GNU) + + if(MSVC) + target_compile_options(${TARGET} PUBLIC /utf-8) + endif() endfunction() if (${DAWN_ENABLE_TSAN})