diff options
author | Vinson Lee <[email protected]> | 2012-10-27 13:10:28 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2012-10-28 11:31:25 -0700 |
commit | d37ae642034bcaca39492c1eb75b029fb27ceffb (patch) | |
tree | 011786acb4a4e2872a00b05d20a723fe4e993cc7 /scons | |
parent | 9ae7d8bb799a8c5008c7c4824d414ca856e13ba5 (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]>
Diffstat (limited to 'scons')
-rw-r--r-- | scons/llvm.py | 3 |
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: |