From 7e8473b61a7f0cb1ace14c000c94ce7e67577ef7 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 14 Dec 2014 16:03:42 -0500 Subject: [PATCH] Remove /Zo on debug builds and add on release builds. --- AMBuildScript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index fe92d4fdb..d2b99d545 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -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':