diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-10-08 10:49:33 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2020-10-08 10:58:05 +0200 |
commit | 97f116d36bdc8a335f26eebb70a7480d96536ecb (patch) | |
tree | b894b3d56ba1d6f2cf6532698d5a057142e5e22c /platform/windows | |
parent | 8a4f402bcb85ccbf713b76581a1960448f917695 (diff) |
SCons: Refactor and cleanup warnings definition
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/detect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 63f31307e7..d5474ace9c 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -222,8 +222,8 @@ def configure_msvc(env, manual_msvc_config): ## Compile/link flags env.AppendUnique(CCFLAGS=["/MT", "/Gd", "/GR", "/nologo"]) - if int(env["MSVC_VERSION"].split(".")[0]) >= 14: # vs2015 and later - env.AppendUnique(CCFLAGS=["/utf-8"]) + # Force to use Unicode encoding + env.Append(MSVC_FLAGS=["/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: |