Author: Armin Rigo <[email protected]>
Branch: stm-thread
Changeset: r55066:b2f942ea6c40
Date: 2012-05-12 21:22 +0200
http://bitbucket.org/pypy/pypy/changeset/b2f942ea6c40/
Log: Fix for small translation targets
diff --git a/pypy/rlib/rstack.py b/pypy/rlib/rstack.py
--- a/pypy/rlib/rstack.py
+++ b/pypy/rlib/rstack.py
@@ -16,10 +16,8 @@
# ____________________________________________________________
-compilation_info = ExternalCompilationInfo(includes=['src/stack.h'])
-
def llexternal(name, args, res, _callable=None):
- return rffi.llexternal(name, args, res, compilation_info=compilation_info,
+ return rffi.llexternal(name, args, res,
sandboxsafe=True, _nowrapper=True,
_callable=_callable)
diff --git a/pypy/translator/c/src/g_include.h
b/pypy/translator/c/src/g_include.h
--- a/pypy/translator/c/src/g_include.h
+++ b/pypy/translator/c/src/g_include.h
@@ -55,6 +55,8 @@
# include "src/main.h"
#endif
+#include "src/stack.h"
+
/* suppress a few warnings in the generated code */
#ifdef MS_WINDOWS
# ifdef _MSC_VER
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit