From 9aad1ba70fad7bfa45778faa5a91235f8302264f Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 16 Oct 2013 20:24:13 -0500 Subject: scons: Simplified fix of llvm cxxflags for rtti * Based on ideas of Jose Fonseca * A rework of ce8eadb6e8 Tested-by: Vinson Lee --- scons/llvm.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scons/llvm.py') diff --git a/scons/llvm.py b/scons/llvm.py index c1c3736..8388d8e 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -190,6 +190,11 @@ def generate(env): pass env.MergeFlags(cppflags) + # Match llvm --fno-rtti flag + cxxflags = env.backtick('llvm-config --cxxflags').split() + if '-fno-rtti' in cxxflags: + env.Append(CXXFLAGS = ['-fno-rtti']) + components = ['engine', 'bitwriter', 'x86asmprinter'] if llvm_version >= distutils.version.LooseVersion('3.1'): -- cgit v1.1