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
parent 0e889de958
commit e31f9ea9ab
No known key found for this signature in database
GPG key ID: 4D05A4F6CB4E7DEE
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':

@ -1 +1 @@
Subproject commit 20d57e6cf5d0353de0905f4edd3697b6de32bc74
Subproject commit 28853fd110dbbc70581ea0a257a0d89febef66aa