Tell MSVC our source files are UTF-8

This commit is contained in:
Kovid Goyal 2020-05-01 20:05:18 +05:30
parent 8cbda9e18a
commit 0213b80693
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -200,7 +200,7 @@ def init_env():
if iswindows: if iswindows:
cc = cxx = msvc.cc cc = cxx = msvc.cc
cflags = '/c /nologo /MD /W3 /EHsc /DNDEBUG'.split() cflags = '/c /nologo /MD /W3 /EHsc /utf-8 /DNDEBUG'.split()
ldflags = '/DLL /nologo /INCREMENTAL:NO /NODEFAULTLIB:libcmt.lib'.split() ldflags = '/DLL /nologo /INCREMENTAL:NO /NODEFAULTLIB:libcmt.lib'.split()
# cflags = '/c /nologo /Ox /MD /W3 /EHsc /Zi'.split() # cflags = '/c /nologo /Ox /MD /W3 /EHsc /Zi'.split()
# ldflags = '/DLL /nologo /INCREMENTAL:NO /DEBUG'.split() # ldflags = '/DLL /nologo /INCREMENTAL:NO /DEBUG'.split()