diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-11 10:32:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-11 10:32:19 +0200 |
commit | 7f2ad8bd3f41470dc79378d8dd78b985806a2fb5 (patch) | |
tree | 223245a619b72e184c1e60f87ec1bcdc19379c1e /platform/windows/detect.py | |
parent | 10c7742df3eed6c0e0d244d3a8646456beb09d49 (diff) | |
parent | ff3fdabc52a09c8f4ed6549f4366896e47876471 (diff) |
Merge pull request #27915 from WindyDarian/msvc_force_utf8_source_encoding
Force utf-8 source file encoding in MSVC
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r-- | platform/windows/detect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 0118b5bae2..15e8f33eae 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -195,7 +195,7 @@ def configure_msvc(env, manual_msvc_config): ## 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++ if manual_msvc_config: # should be automatic if SCons found it if os.getenv("WindowsSdkDir") is not None: |