1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-03-22 13:19:40 +01:00

Remove /Zo on debug builds and add on release builds.

This commit is contained in:
Nicholas Hastings 2015-01-09 09:03:27 -05:00
parent 62961002b7
commit 231936cda9

View File

@ -181,7 +181,7 @@ class MMSConfig(object):
if cxx.behavior == 'gcc':
cfg.cflags += ['-O3']
elif cxx.behavior == 'msvc':
cfg.cflags += ['/Ox']
cfg.cflags += ['/Ox', '/Zo']
cfg.linkflags += ['/OPT:ICF', '/OPT:REF']
# Debugging
@ -190,7 +190,7 @@ class MMSConfig(object):
if cxx.behavior == 'gcc':
cfg.cflags += ['-g3']
elif cxx.behavior == 'msvc':
cfg.cflags += ['/Od', '/Zo', '/RTC1']
cfg.cflags += ['/Od', '/RTC1']
# This needs to be after our optimization flags which could otherwise disable it.
if cxx.name == 'msvc':