[pypy-commit] pypy kill-exported-symbols-list: fix

arigo noreply at buildbot.pypy.org
Thu Oct 23 16:30:45 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: kill-exported-symbols-list
Changeset: r74137:ded224e5ce19
Date: 2014-10-23 16:23 +0200
http://bitbucket.org/pypy/pypy/changeset/ded224e5ce19/

Log:	fix

diff --git a/rpython/rtyper/lltypesystem/test/test_rffi.py b/rpython/rtyper/lltypesystem/test/test_rffi.py
--- a/rpython/rtyper/lltypesystem/test/test_rffi.py
+++ b/rpython/rtyper/lltypesystem/test/test_rffi.py
@@ -7,6 +7,7 @@
 from rpython.translator.c.test.test_genc import compile as compile_c
 from rpython.rtyper.lltypesystem.lltype import Signed, Ptr, Char, malloc
 from rpython.rtyper.lltypesystem import lltype
+from rpython.translator import cdir
 from rpython.tool.udir import udir
 from rpython.rtyper.test.test_llinterp import interpret
 from rpython.annotator.annrpython import RPythonAnnotator
@@ -398,7 +399,9 @@
         h_include.write(h_source)
 
         c_source = py.code.Source("""
-        Signed eating_callback(Signed arg, Signed(*call)(Signed))
+        #include "src/precommondefs.h"
+
+        RPY_EXPORTED Signed eating_callback(Signed arg, Signed(*call)(Signed))
         {
             Signed res = call(arg);
             if (res == -1)
@@ -408,9 +411,8 @@
         """)
 
         eci = ExternalCompilationInfo(includes=['callback.h'],
-                                      include_dirs=[str(udir)],
-                                      separate_module_sources=[c_source],
-                                      export_symbols=['eating_callback'])
+                                      include_dirs=[str(udir), cdir],
+                                      separate_module_sources=[c_source])
 
         args = [SIGNED, CCallback([SIGNED], SIGNED)]
         eating_callback = llexternal('eating_callback', args, SIGNED,


More information about the pypy-commit mailing list