[pypy-commit] pypy precompiled-headers: add separate_module_files to cfiles by hand

mattip noreply at buildbot.pypy.org
Tue Feb 4 06:02:25 CET 2014


Author: Matti Picus <matti.picus at gmail.com>
Branch: precompiled-headers
Changeset: r69077:3388da518026
Date: 2014-02-03 23:24 +0200
http://bitbucket.org/pypy/pypy/changeset/3388da518026/

Log:	add separate_module_files to cfiles by hand

diff --git a/rpython/translator/c/genc.py b/rpython/translator/c/genc.py
--- a/rpython/translator/c/genc.py
+++ b/rpython/translator/c/genc.py
@@ -377,7 +377,8 @@
         return self.executable_name
 
     def gen_makefile(self, targetdir, exe_name=None, headers_to_precompile=[]):
-        cfiles = [self.c_source_filename] + self.extrafiles
+        cfiles = [self.c_source_filename] + self.extrafiles + list(self.eci.separate_module_files)
+        xxx
         if exe_name is not None:
             exe_name = targetdir.join(exe_name)
         mk = self.translator.platform.gen_makefile(
diff --git a/rpython/translator/platform/windows.py b/rpython/translator/platform/windows.py
--- a/rpython/translator/platform/windows.py
+++ b/rpython/translator/platform/windows.py
@@ -349,7 +349,7 @@
             # precompiled headers :(
             no_precompile = []
             for f in list(eci.separate_module_files):
-                f = m.pathrel(f)
+                f = m.pathrel(py.path.local(f))
                 if f not in no_precompile and f.endswith('.c'):
                     no_precompile.append(f)
                     target = f[:-1] + 'obj'


More information about the pypy-commit mailing list