[pypy-commit] pypy stm-thread: Fix for small translation targets
arigo
noreply at buildbot.pypy.org
Sat May 12 21:23:01 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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
More information about the pypy-commit
mailing list