Author: Matti Picus <[email protected]>
Branch: precompiled-headers
Changeset: r68965:288f78765ae2
Date: 2014-01-27 22:16 +0200
http://bitbucket.org/pypy/pypy/changeset/288f78765ae2/
Log: add a flag, start a test
diff --git a/rpython/translator/platform/__init__.py
b/rpython/translator/platform/__init__.py
--- a/rpython/translator/platform/__init__.py
+++ b/rpython/translator/platform/__init__.py
@@ -100,7 +100,7 @@
return ExecutionResult(returncode, stdout, stderr)
def gen_makefile(self, cfiles, eci, exe_name=None, path=None,
- shared=False):
+ shared=False, cfile_precompilation=None):
raise NotImplementedError("Pure abstract baseclass")
def __repr__(self):
diff --git a/rpython/translator/platform/darwin.py
b/rpython/translator/platform/darwin.py
--- a/rpython/translator/platform/darwin.py
+++ b/rpython/translator/platform/darwin.py
@@ -50,14 +50,14 @@
return ["-Wl,-exported_symbols_list,%s" % (response_file,)]
def gen_makefile(self, cfiles, eci, exe_name=None, path=None,
- shared=False):
+ shared=False, cfile_precompilation=None):
# ensure frameworks are passed in the Makefile
fs = self._frameworks(eci.frameworks)
if len(fs) > 0:
# concat (-framework, FrameworkName) pairs
self.extra_libs += tuple(map(" ".join, zip(fs[::2], fs[1::2])))
mk = super(Darwin, self).gen_makefile(cfiles, eci, exe_name, path,
- shared)
+ shared, cfile_precompilation)
return mk
diff --git a/rpython/translator/platform/posix.py
b/rpython/translator/platform/posix.py
--- a/rpython/translator/platform/posix.py
+++ b/rpython/translator/platform/posix.py
@@ -83,7 +83,7 @@
return [entry[2:] for entry in out.split()]
def gen_makefile(self, cfiles, eci, exe_name=None, path=None,
- shared=False):
+ shared=False, cfile_precompilation=None):
cfiles = self._all_cfiles(cfiles, eci)
if path is None:
diff --git a/rpython/translator/platform/test/test_platform.py
b/rpython/translator/platform/test/test_platform.py
--- a/rpython/translator/platform/test/test_platform.py
+++ b/rpython/translator/platform/test/test_platform.py
@@ -86,6 +86,12 @@
res = self.platform.execute(udir.join('test_900_files'))
self.check_res(res, '%d\n' %sum(range(900)))
+ def test_precompiled_headers(self):
+ # Create an eci that should not use precompiled headers
+ # Create some cfiles with headers we want precompiled
+ # Call gen_makefile(cfiles, eci, cfiles_precompiled_headers=[list, of,
headers])
+ # Make sure it all works
+ pass
def test_nice_errors(self):
cfile = udir.join('test_nice_errors.c')
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
@@ -249,7 +249,7 @@
def gen_makefile(self, cfiles, eci, exe_name=None, path=None,
- shared=False):
+ shared=False, cfile_precompilation=None):
cfiles = self._all_cfiles(cfiles, eci)
if path is None:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit