summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-12-11 12:08:32 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-12-11 12:28:53 +0000
commita2937a2f4ecf22a5a4242cd0a350f20228f50232 (patch)
tree76d0517c15e3d8019c43d983b90ff2b6bbc8d602
parent8c981b94dc0ff30fe2b2786b1d5671be7d1610b7 (diff)
scons: Pass -fno-strict-aliasing to gcc.
Strict aliasing tule violations were fixed on master, but they're still causing problem in this branch, so disable this assumptions. Do not apply this fix to master (revert when you merge).
-rw-r--r--scons/gallium.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index ca1ca5153e7..0e5de0d0f8e 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -370,6 +370,7 @@ def generate(env):
'-Wno-long-long',
'-ffast-math',
'-fmessage-length=0', # be nice to Eclipse
+ '-fno-strict-aliasing', # we violate strict pointer aliasing rules
]
cflags += [
'-Werror=declaration-after-statement',