Author: Manuel Jacob
Branch: remove-PYPY_NOT_MAIN_FILE
Changeset: r59107:30511e4df592
Date: 2012-11-27 14:57 +0100
http://bitbucket.org/pypy/pypy/changeset/30511e4df592/

Log:    Include stacklet.c in separate_module_files directly.

diff --git a/pypy/rlib/_rffi_stacklet.py b/pypy/rlib/_rffi_stacklet.py
--- a/pypy/rlib/_rffi_stacklet.py
+++ b/pypy/rlib/_rffi_stacklet.py
@@ -12,7 +12,7 @@
 eci = ExternalCompilationInfo(
     include_dirs = [cdir],
     includes = ['src/stacklet/stacklet.h'],
-    separate_module_sources = ['#include "src/stacklet/stacklet.c"\n'],
+    separate_module_files = [cdir / 'src' / 'stacklet' / 'stacklet.c'],
 )
 if 'masm' in dir(eci.platform): # Microsoft compiler
     if is_emulated_long:
diff --git a/pypy/translator/c/src/stacklet/stacklet.c 
b/pypy/translator/c/src/stacklet/stacklet.c
--- a/pypy/translator/c/src/stacklet/stacklet.c
+++ b/pypy/translator/c/src/stacklet/stacklet.c
@@ -2,7 +2,7 @@
  * By Armin Rigo
  */
 
-#include "stacklet.h"
+#include "src/stacklet/stacklet.h"
 
 #include <stddef.h>
 #include <assert.h>
@@ -17,7 +17,7 @@
  */
 #define STACK_DIRECTION 0   
 
-#include "slp_platformselect.h"
+#include "src/stacklet/slp_platformselect.h"
 
 #if STACK_DIRECTION != 0
 #  error "review this whole code, which depends on STACK_DIRECTION==0 so far"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to