summaryrefslogtreecommitdiffstats
path: root/scons/llvm.py
diff options
context:
space:
mode:
Diffstat (limited to 'scons/llvm.py')
-rw-r--r--scons/llvm.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index c1c37362d3c..8388d8e9fc2 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'):