[Mesa-dev] [PATCH] scons: Add -fno-rtti to CXXFLAGS with llvm-3.2.

Vinson Lee vlee at freedesktop.org
Sat Oct 27 13:17:35 PDT 2012


llvm-3.2svn r166772 no longer requires RTTI for lib/Support.

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 scons/llvm.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scons/llvm.py b/scons/llvm.py
index f87766a..e1ed760 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -183,6 +183,9 @@ def generate(env):
             if llvm_version >= distutils.version.LooseVersion('3.1'):
                 components.append('mcjit')
 
+            if llvm_version >= distutils.version.LooseVersion('3.2'):
+                env.Append(CXXFLAGS = ('-fno-rtti',))
+
             env.ParseConfig('llvm-config --libs ' + ' '.join(components))
             env.ParseConfig('llvm-config --ldflags')
         except OSError:
-- 
1.7.12.1



More information about the mesa-dev mailing list