From: Vinson Lee Date: Sat, 27 Oct 2012 20:10:28 +0000 (-0700) Subject: scons: Add -fno-rtti to CXXFLAGS with llvm-3.2. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d37ae642034bcaca39492c1eb75b029fb27ceffb;p=mesa.git scons: Add -fno-rtti to CXXFLAGS with llvm-3.2. llvm-3.2svn r166772 no longer requires RTTI for lib/Support. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- diff --git a/scons/llvm.py b/scons/llvm.py index f87766af190..e1ed7602211 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: