summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-10-27 13:10:28 -0700
committerVinson Lee <[email protected]>2012-10-28 11:31:25 -0700
commitd37ae642034bcaca39492c1eb75b029fb27ceffb (patch)
tree011786acb4a4e2872a00b05d20a723fe4e993cc7
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 <[email protected]> Reviewed-by: José Fonseca <[email protected]>
-rw-r--r--scons/llvm.py3
1 files changed, 3 insertions, 0 deletions
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: