[pypy-commit] pypy llvm-translation-backend: Pass '/dev/null' to clang.

Manuel Jacob noreply at buildbot.pypy.org
Fri Aug 30 15:43:32 CEST 2013


Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r66479:9fec18cd5151
Date: 2012-04-23 19:24 +0200
http://bitbucket.org/pypy/pypy/changeset/9fec18cd5151/

Log:	Pass '/dev/null' to clang.

diff --git a/pypy/translator/llvm/genllvm.py b/pypy/translator/llvm/genllvm.py
--- a/pypy/translator/llvm/genllvm.py
+++ b/pypy/translator/llvm/genllvm.py
@@ -1393,7 +1393,7 @@
         ep_ptr = getfunctionptr(bk.getdesc(entry_point).getuniquegraph())
 
         with self.base_path.new(ext='.ll').open('w') as f:
-            f.write(cmdexec('clang -emit-llvm -S -x c - -o -'))
+            f.write(cmdexec('clang -emit-llvm -S -x c /dev/null -o -'))
             # XXX
             f.write('declare i8* @malloc(i64)\n')
             f.write('declare void @free(i8*)\n')


More information about the pypy-commit mailing list