diff options
author | José Fonseca <[email protected]> | 2009-09-20 18:07:16 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-09-20 18:09:34 +0100 |
commit | 1a9eec84bd363409b884fbf468dbec6ca595b593 (patch) | |
tree | dee7124ca05e19dd60719b933e33c335b6718b10 /scons/gallium.py | |
parent | 911a7a82cd44e89dd7c24a256a0a172f01eadde3 (diff) |
scons: Drop gprof support for profile builds; tweak optimization flags instead.
gprof is useful for shared libraries, hence our drivers. Nevertheless
profilers like oprofile can benefit from disabling some relatively
minor optimizations for more accurate / complete results.
Diffstat (limited to 'scons/gallium.py')
-rw-r--r-- | scons/gallium.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py index 47b07744be9..38782ac7266 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -334,7 +334,11 @@ def generate(env): else: ccflags += ['-O3', '-g3'] if env['profile']: - ccflags += ['-pg'] + # See http://code.google.com/p/jrfonseca/wiki/Gprof2Dot#Which_options_should_I_pass_to_gcc_when_compiling_for_profiling? + ccflags += [ + '-fno-omit-frame-pointer', + '-fno-optimize-sibling-calls', + ] if env['machine'] == 'x86': ccflags += [ '-m32', |