From 835c0d05b0901e50afe19eaa9b3b2eb938ce5cf7 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Fri, 20 Nov 2009 12:56:11 +0000 Subject: [PATCH] Disable -fomit-frame-pointers in optimised builds, so that oprofile callgraph works This was SVN commit r7208. --- build/premake/premake.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/premake/premake.lua b/build/premake/premake.lua index 976a721454..ec2ededd4a 100755 --- a/build/premake/premake.lua +++ b/build/premake/premake.lua @@ -190,6 +190,11 @@ function package_set_build_flags() -- speed up math functions by inlining. warning: this may result in -- non-IEEE-conformant results, but haven't noticed any trouble so far. "-ffast-math", + + -- don't omit frame pointers (for now), because performance will be impacted + -- negatively by the way this breaks profilers more than it will be impacted + -- positively by the optimisation + "-fno-omit-frame-pointer", }) if OS == "linux" then tinsert(package.linkoptions, {