Merge pull request #27915 from WindyDarian/msvc_force_utf8_source_encoding
Force utf-8 source file encoding in MSVC
This commit is contained in:
commit
7f2ad8bd3f
|
@ -195,7 +195,7 @@ def configure_msvc(env, manual_msvc_config):
|
||||||
|
|
||||||
## Compile/link flags
|
## Compile/link flags
|
||||||
|
|
||||||
env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo'])
|
env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo', '/utf-8'])
|
||||||
env.AppendUnique(CXXFLAGS=['/TP']) # assume all sources are C++
|
env.AppendUnique(CXXFLAGS=['/TP']) # assume all sources are C++
|
||||||
if manual_msvc_config: # should be automatic if SCons found it
|
if manual_msvc_config: # should be automatic if SCons found it
|
||||||
if os.getenv("WindowsSdkDir") is not None:
|
if os.getenv("WindowsSdkDir") is not None:
|
||||||
|
|
Loading…
Reference in New Issue