Build windows releases with /MT rather than /MD

When making a release export of a project, binaries built with the /MD
flag do not work.
This commit is contained in:
Leroy Hopson 2020-11-22 22:16:38 +07:00 committed by Leroy Hopson
parent c99a9b4a2e
commit 4cc2115125
4 changed files with 12 additions and 6 deletions

View file

@ -128,7 +128,7 @@ elif env['platform'] == 'windows':
if env['target'] == 'debug':
env.Append(CCFLAGS=['/Z7', '/Od', '/EHsc', '/D_DEBUG', '/MDd'])
elif env['target'] == 'release':
env.Append(CCFLAGS=['/O2', '/EHsc', '/DNDEBUG', '/MD'])
env.Append(CCFLAGS=['/O2', '/EHsc', '/DNDEBUG', '/MT'])
# On Windows, Linux, or MacOS using MinGW.
elif host_platform == 'linux' or host_platform == 'osx':