tell MSVC to build grpc with utf-8 (#30003)
* tell MSVC to build grpc with utf-8 fix #29979 * generate_projects Co-authored-by: AJ Heller <hork@google.com>
This commit is contained in:
parent
6598793c9f
commit
d0751191a9
|
|
@ -264,6 +264,8 @@ if(MSVC)
|
|||
set(_gRPC_C_CXX_FLAGS "${_gRPC_C_CXX_FLAGS} /wd4987 /wd4774 /wd4819 /wd4996 /wd4619")
|
||||
# Silences thousands of trucation warnings
|
||||
set(_gRPC_C_CXX_FLAGS "${_gRPC_C_CXX_FLAGS} /wd4503")
|
||||
# Tell MSVC to build grpc using utf-8
|
||||
set(_gRPC_C_CXX_FLAGS "${_gRPC_C_CXX_FLAGS} /utf-8")
|
||||
endif()
|
||||
if (MINGW)
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
|
|
|||
|
|
@ -308,6 +308,8 @@
|
|||
set(_gRPC_C_CXX_FLAGS "<%text>${_gRPC_C_CXX_FLAGS}</%text> /wd4987 /wd4774 /wd4819 /wd4996 /wd4619")
|
||||
# Silences thousands of trucation warnings
|
||||
set(_gRPC_C_CXX_FLAGS "<%text>${_gRPC_C_CXX_FLAGS}</%text> /wd4503")
|
||||
# Tell MSVC to build grpc using utf-8
|
||||
set(_gRPC_C_CXX_FLAGS "<%text>${_gRPC_C_CXX_FLAGS}</%text> /utf-8")
|
||||
endif()
|
||||
if (MINGW)
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
|
|
|
|||
Loading…
Reference in New Issue