Author: Armin Rigo <[email protected]>
Branch:
Changeset: r87410:04821987a10e
Date: 2016-09-27 09:58 +0200
http://bitbucket.org/pypy/pypy/changeset/04821987a10e/
Log: fix translation with --no-allworkingmodules
diff --git a/pypy/module/sys/initpath.py b/pypy/module/sys/initpath.py
--- a/pypy/module/sys/initpath.py
+++ b/pypy/module/sys/initpath.py
@@ -7,7 +7,7 @@
import stat
import sys
-from rpython.rlib import rpath
+from rpython.rlib import rpath, rdynload
from rpython.rlib.objectmodel import we_are_translated
from rpython.rtyper.lltypesystem import lltype, rffi
from rpython.translator.tool.cbuild import ExternalCompilationInfo
@@ -243,6 +243,7 @@
_eci = ExternalCompilationInfo(separate_module_sources=[_source_code],
post_include_bits=['RPY_EXPORTED char *_pypy_init_home(void);'])
+_eci = _eci.merge(rdynload.eci)
pypy_init_home = rffi.llexternal("_pypy_init_home", [], rffi.CCHARP,
_nowrapper=True, compilation_info=_eci)
diff --git a/rpython/rlib/rdynload.py b/rpython/rlib/rdynload.py
--- a/rpython/rlib/rdynload.py
+++ b/rpython/rlib/rdynload.py
@@ -34,6 +34,7 @@
else:
libraries = ['dl']
+# this 'eci' is also used in pypy/module/sys/initpath.py
eci = ExternalCompilationInfo(
pre_include_bits = pre_include_bits,
includes = includes,
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit