[pypy-commit] pypy llvm-translation-backend: Explicitly pass -fno-rtti when compiling PyPyGC.cpp.

Manuel Jacob noreply at buildbot.pypy.org
Mon Jul 7 07:38:32 CEST 2014


Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r72372:ca9f8a00d634
Date: 2014-07-06 12:14 +0200
http://bitbucket.org/pypy/pypy/changeset/ca9f8a00d634/

Log:	Explicitly pass -fno-rtti when compiling PyPyGC.cpp.

diff --git a/rpython/translator/llvm/genllvm.py b/rpython/translator/llvm/genllvm.py
--- a/rpython/translator/llvm/genllvm.py
+++ b/rpython/translator/llvm/genllvm.py
@@ -1839,7 +1839,7 @@
         gc_cpp = this_file.new(basename='PyPyGC.cpp')
         gc_lib = this_file.new(purebasename='PyPyGC',
                                ext=self.translator.platform.so_ext)
-        cflags = cmdexec('llvm-config --cxxflags').strip()
+        cflags = cmdexec('llvm-config --cxxflags').strip() + ' -fno-rtti'
         cmdexec('clang {} -shared {} -o {}'.format(cflags, gc_cpp, gc_lib))
         return gc_lib
 


More information about the pypy-commit mailing list