summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2013-10-16 20:24:13 -0500
committerAlexander von Gluck IV <kallisti5@unixzen.com>2013-10-17 20:33:05 -0500
commit9aad1ba70fad7bfa45778faa5a91235f8302264f (patch)
tree5ac30fea05b3f323eebd08ae7becbbad30be2619 /scons
parentb08195faec1bc31aed8b5c59419ac060b7e0b34e (diff)
scons: Simplified fix of llvm cxxflags for rtti
* Based on ideas of Jose Fonseca * A rework of ce8eadb6e8 Tested-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index c1c37362d3c4..8388d8e9fc2b 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'):