Fix the Chinese windows system encoding problem.
Bug: dawn:1532
Change-Id: Ic40bf788fd7dba5e5cc7a548b5175a7cc18421f5
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/102240
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 17a7ec5..9d72db1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -294,6 +294,10 @@
endif()
endif(COMPILER_IS_LIKE_GNU)
+ if(MSVC)
+ target_compile_options(${TARGET} PRIVATE /utf-8)
+ endif()
+
if (TINT_EMIT_COVERAGE)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(${TARGET} PRIVATE "--coverage")