From 231936cda97aaf4eb59fe2b9f8c8793e59a33c0d Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 9 Jan 2015 09:03:27 -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 2b7226c..08880be 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -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':