From d37ae642034bcaca39492c1eb75b029fb27ceffb Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 27 Oct 2012 13:10:28 -0700 Subject: [PATCH] scons: Add -fno-rtti to CXXFLAGS with llvm-3.2. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit llvm-3.2svn r166772 no longer requires RTTI for lib/Support. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- scons/llvm.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.30.2