diff options
author | Armin Rigo <arigo@tunes.org> | 2016-09-03 19:21:55 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-09-03 19:21:55 +0200 |
commit | ab96121085aa3b5e81be029e60dad084fb67e088 (patch) | |
tree | 022aafb91dff0c26ea59a0787618fad806d137f0 /cffi/api.py | |
parent | b3c5f159d9e39a3ed268516a4342686744d192e4 (diff) | |
download | cffi-ab96121085aa3b5e81be029e60dad084fb67e088.tar.gz |
- add ffi.compile(debug=flag)
- this small addition, and a few others not in pypy 5.4, will make the
next cffi release v1.8.1
Diffstat (limited to 'cffi/api.py')
-rw-r--r-- | cffi/api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cffi/api.py b/cffi/api.py index 267076f..6d1eb48 100644 --- a/cffi/api.py +++ b/cffi/api.py @@ -646,7 +646,7 @@ class FFI(object): recompile(self, module_name, source, c_file=filename, call_c_compiler=False, **kwds) - def compile(self, tmpdir='.', verbose=0, target=None): + def compile(self, tmpdir='.', verbose=0, target=None, debug=None): """The 'target' argument gives the final file name of the compiled DLL. Use '*' to force distutils' choice, suitable for regular CPython C API modules. Use a file name ending in '.*' @@ -663,7 +663,7 @@ class FFI(object): module_name, source, source_extension, kwds = self._assigned_source return recompile(self, module_name, source, tmpdir=tmpdir, target=target, source_extension=source_extension, - compiler_verbose=verbose, **kwds) + compiler_verbose=verbose, debug=debug, **kwds) def init_once(self, func, tag): # Read _init_once_cache[tag], which is either (False, lock) if |