From 15586778bb7e5e61390aa910c1bcfd4eb283d89c Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Tue, 27 Aug 2013 02:42:56 +0000 Subject: [PATCH] Disables frame-pointer omission in VC++ 2008 projects, fixes stack dump in release build, fixes #2078 This was SVN commit r13779. --- build/premake/premake4.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/premake/premake4.lua b/build/premake/premake4.lua index a4303260fd..ca44bd7f97 100644 --- a/build/premake/premake4.lua +++ b/build/premake/premake4.lua @@ -177,6 +177,12 @@ function project_set_build_flags() -- use native wchar_t type (not typedef to unsigned short) flags { "NativeWChar" } + -- VC++ 2008 has implied FPO as the default (newer versions default to /Oy-) + -- disable it explicitly since it breaks our stack walker in release build + if _ACTION == "vs2008" then + buildoptions { "/Oy-" } + end + else -- *nix if _OPTIONS["icc"] and not _OPTIONS["minimal-flags"] then buildoptions {