Skip to content

Commit

Permalink
Merge pull request #223 from alliedmodders/zo
Browse files Browse the repository at this point in the history
Change /d2Zi+ flag on msvc builds to /Zo.
  • Loading branch information
psychonic committed Dec 18, 2014
2 parents d413a6b + 7e8473b commit 17fcd5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions AMBuildScript
Expand Up @@ -249,16 +249,14 @@ class SMConfig(object):
if cxx.like('gcc'):
cxx.cflags += ['-O3']
elif cxx.like('msvc'):
cxx.cflags += ['/Ox']
cxx.cflags += ['/Ox', '/Zo']
cxx.linkflags += ['/OPT:ICF', '/OPT:REF']

# Debugging
if builder.options.debug == '1':
cxx.defines += ['DEBUG', '_DEBUG']
if cxx.like('msvc'):
cxx.cflags += ['/Od', '/RTC1']
if cxx.version >= 1600:
cxx.cflags += ['/d2Zi+']

# This needs to be after our optimization flags which could otherwise disable it.
if cxx.vendor == 'msvc':
Expand Down

0 comments on commit 17fcd5a

Please sign in to comment.