1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

SCons: Refactor and cleanup warnings definition

(cherry picked from commits 97f116d36b
and 56f3aba7b2)
This commit is contained in:
Rémi Verschelde
2020-10-08 10:49:33 +02:00
parent 1a25a301db
commit f33ca5444a
3 changed files with 15 additions and 13 deletions

View File

@@ -209,8 +209,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.AppendUnique(CCFLAGS=["/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: