summaryrefslogtreecommitdiff
path: root/compileoptions.cmake
diff options
context:
space:
mode:
author刘雨培 <liuyupei951018@hotmail.com>2017-11-02 20:06:00 (GMT)
committerJan Kotas <jkotas@microsoft.com>2017-11-02 20:06:00 (GMT)
commit96f1a89a2bb007b7dbe5ccc613a0fa3f8dd323dd (patch)
tree99e924e1b4bddd8a7f0c50c4dd51212e878c93f4 /compileoptions.cmake
parent7dc0f2779bedea15a592c161ad6a9eddfc88c5f9 (diff)
downloadcoreclr-96f1a89a2bb007b7dbe5ccc613a0fa3f8dd323dd.zip
coreclr-96f1a89a2bb007b7dbe5ccc613a0fa3f8dd323dd.tar.gz
coreclr-96f1a89a2bb007b7dbe5ccc613a0fa3f8dd323dd.tar.bz2
Switch to /utf-8 for MSVC (#14822)
* Add /source-charset:utf-8 to force MSVC to compile source as UTF-8. * Fix the illegal character in siginfo.cpp.
Diffstat (limited to 'compileoptions.cmake')
-rw-r--r--compileoptions.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/compileoptions.cmake b/compileoptions.cmake
index 9f9f28e..6f9d55f 100644
--- a/compileoptions.cmake
+++ b/compileoptions.cmake
@@ -94,6 +94,7 @@ if (WIN32)
add_compile_options(/wd4960 /wd4961 /wd4603 /wd4627 /wd4838 /wd4456 /wd4457 /wd4458 /wd4459 /wd4091 /we4640)
add_compile_options(/Zi) # enable debugging information
add_compile_options(/ZH:SHA_256) # use SHA256 for generating hashes of compiler processed source files.
+ add_compile_options(/source-charset:utf-8) # Force MSVC to compile source as UTF-8.
if (CLR_CMAKE_PLATFORM_ARCH_I386)
add_compile_options(/Gz)