Build: Compile source as UTF-8 with MSVC

This commit is contained in:
Connor McLaughlin
2020-08-15 00:04:38 +10:00
parent 025e01ca47
commit c5db7db182
28 changed files with 218 additions and 6 deletions

View File

@ -120,8 +120,8 @@ if(MSVC)
# Set warning level 3 instead of 4.
string(REPLACE "/W3" "/W4" ${config} "${${config}}")
# Enable intrinsic functions, disable minimal rebuild.
set(${config} "${${config}} /Oi /Gm-")
# Enable intrinsic functions, disable minimal rebuild, UTF-8 source.
set(${config} "${${config}} /Oi /Gm- /utf-8")
endforeach()
# RelWithDebInfo is set to Ob1 instead of Ob2.