From e8dc1480eb708dbd7498653a2bcf1101a1b12dca Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 13 May 2013 14:19:17 -0400 Subject: [PATCH] Don't omit frame pointer on msvc builds. --- AMBuildScript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index 3e7c2e46..9d674f5a 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -208,6 +208,11 @@ class SM: if self.vendor == 'msvc': self.compiler.AddToListVar('CFLAGS', '/Od') self.compiler.AddToListVar('CFLAGS', '/RTC1') + + #This needs to be after our optimization flags which could otherwise disable it. + if self.vendor == 'msvc': + # Don't omit frame pointer + self.compiler.AddToListVar('CFLAGS', '/Oy-') #Platform-specifics if AMBuild.target['platform'] == 'linux':