Skip to content

Commit

Permalink
Remove /Zo on debug builds and add on release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Dec 14, 2014
1 parent 03abafc commit 7e8473b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AMBuildScript
Expand Up @@ -249,14 +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', '/Zo', '/RTC1']
cxx.cflags += ['/Od', '/RTC1']

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

0 comments on commit 7e8473b

Please sign in to comment.