Author: Manuel Jacob Branch: llvm-translation-backend Changeset: r68762:2870c4a2d133 Date: 2014-01-18 13:25 +0100 http://bitbucket.org/pypy/pypy/changeset/2870c4a2d133/
Log: Fix datalayout fishing. 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 @@ -1738,7 +1738,9 @@ output = cmdexec('clang -emit-llvm -S -x c {} -o -' .format(devnull)) self._parse_datalayout(output) - f.write(output) + for line in output.splitlines(True): + if line.startswith('target '): + f.write(line) database = Database(self, f) self._write_special_declarations(f) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit