mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 14:35:42 +00:00
Merge pull request #5592 from Tachi107/2.28-msvc-utf-8
2.28 backport - build(msvc): always assume source files are in UTF-8
This commit is contained in:
commit
757464c865
|
@ -226,8 +226,8 @@ if(CMAKE_COMPILER_IS_IAR)
|
||||||
endif(CMAKE_COMPILER_IS_IAR)
|
endif(CMAKE_COMPILER_IS_IAR)
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_MSVC)
|
if(CMAKE_COMPILER_IS_MSVC)
|
||||||
# Strictest warnings
|
# Strictest warnings, UTF-8 source and execution charset
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /utf-8")
|
||||||
endif(CMAKE_COMPILER_IS_MSVC)
|
endif(CMAKE_COMPILER_IS_MSVC)
|
||||||
|
|
||||||
if(MBEDTLS_FATAL_WARNINGS)
|
if(MBEDTLS_FATAL_WARNINGS)
|
||||||
|
|
2
ChangeLog.d/cmake_msvc_utf8.txt
Normal file
2
ChangeLog.d/cmake_msvc_utf8.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Changes
|
||||||
|
* Assume source files are in UTF-8 when using MSVC with CMake.
|
Loading…
Reference in a new issue