forked from 0ad/0ad
Disable -fomit-frame-pointers in optimised builds, so that oprofile callgraph works
This was SVN commit r7208.
This commit is contained in:
parent
181a3529de
commit
835c0d05b0
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user