summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorWindy Darian <p123456638@msn.com>2019-04-15 08:06:30 -0400
committerWindy Darian <p123456638@msn.com>2019-04-15 08:44:34 -0400
commitbd7aa1b6f6256f3dd94ac249696588a5e0eb2af7 (patch)
tree756f1439bfc7c145041dc69370fd42c36c7d83b3 /platform
parentdab8f8c953cd8ca18e792cc7aa0b717b38804e01 (diff)
Ignore '/utf-8' flag on vs2013
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/detect.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 15e8f33eae..2f7334657f 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -195,7 +195,9 @@ def configure_msvc(env, manual_msvc_config):
## Compile/link flags
- env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo', '/utf-8'])
+ env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo'])
+ if int(env['MSVC_VERSION'].split('.')[0]) >= 14: #vs2015 and later
+ 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: