Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-11-02 23:06:38 +0300
committerGitHub <noreply@github.com>2017-11-02 23:06:38 +0300
commit9eb948aa36ed84898502f01ffc3d4533de875f43 (patch)
treef2a11b1408816e06e4c2b0a7f9773f7811bf666b /src/Native/CMakeLists.txt
parent4d824e261a7223bf2a36d5b6c85d5c8ed93a205a (diff)
Port https://github.com/dotnet/coreclr/pull/14822 (#4861)
Diffstat (limited to 'src/Native/CMakeLists.txt')
-rw-r--r--src/Native/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt
index 5aeb930a5..e77b1b6f4 100644
--- a/src/Native/CMakeLists.txt
+++ b/src/Native/CMakeLists.txt
@@ -224,6 +224,7 @@ if(WIN32)
add_compile_options($<$<CONFIG:Debug>:-DDEBUG>)
add_compile_options($<$<CONFIG:Debug>:/MTd>)
add_compile_options($<$<CONFIG:Release>:/MT>)
+ add_compile_options(/source-charset:utf-8) # Force MSVC to compile source as UTF-8.
add_compile_options(/Zi) # enable debugging information
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG")