[Windows, MSVC] Correctly set source file encoding.

This commit is contained in:
bruvzg 2020-10-09 13:56:20 +03:00
parent cb9bf98bba
commit 56f3aba7b2
No known key found for this signature in database
GPG key ID: FCED35F1CECE0D3A
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ def configure(env):
vc_base_path = os.environ["VCTOOLSINSTALLDIR"] if "VCTOOLSINSTALLDIR" in os.environ else os.environ["VCINSTALLDIR"] vc_base_path = os.environ["VCTOOLSINSTALLDIR"] if "VCTOOLSINSTALLDIR" in os.environ else os.environ["VCINSTALLDIR"]
# Force to use Unicode encoding # Force to use Unicode encoding
env.Append(MSVC_FLAGS=["/utf-8"]) env.AppendUnique(CCFLAGS=["/utf-8"])
# ANGLE # ANGLE
angle_root = os.getenv("ANGLE_SRC_PATH") angle_root = os.getenv("ANGLE_SRC_PATH")

View file

@ -223,7 +223,7 @@ def configure_msvc(env, manual_msvc_config):
env.AppendUnique(CCFLAGS=["/MT", "/Gd", "/GR", "/nologo"]) env.AppendUnique(CCFLAGS=["/MT", "/Gd", "/GR", "/nologo"])
# Force to use Unicode encoding # Force to use Unicode encoding
env.Append(MSVC_FLAGS=["/utf-8"]) env.AppendUnique(CCFLAGS=["/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: