summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-10-12 20:42:05 +0100
committerJosé Fonseca <jfonseca@vmware.com>2011-10-12 20:43:01 +0100
commit983fa4ad523535debf2e94cf6ac1fd4c5630c0d2 (patch)
tree220bea0dd06b2b77a6e9c9b48bef7e883ca7d6a9 /scons
parentae1153c4acfb2d70c2c7c9310ca38413aa68f32a (diff)
scons: Use -fno-builtin-memcmp.
ipers framerate on llmvpipe improves 60%. Issue spotted by Adam Jackson <ajax at redhat.com>. http://lists.freedesktop.org/archives/mesa-dev/2011-June/009077.html
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 1c9c0ea32e4..c3350b3ca63 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -361,6 +361,9 @@ def generate(env):
ccflags += ['-O0']
else:
ccflags += ['-O3']
+ # gcc's builtin memcmp is slower than glibc's
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
+ ccflags += ['-fno-builtin-memcmp']
# Work around aliasing bugs - developers should comment this out
ccflags += ['-fno-strict-aliasing']
ccflags += ['-g']