summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-10-27 13:10:28 -0700
committerVinson Lee <vlee@freedesktop.org>2012-10-28 11:31:25 -0700
commitd37ae642034bcaca39492c1eb75b029fb27ceffb (patch)
tree011786acb4a4e2872a00b05d20a723fe4e993cc7 /scons
parent9ae7d8bb799a8c5008c7c4824d414ca856e13ba5 (diff)
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 <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index f87766af19..e1ed760221 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: