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/recompiler.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/recompiler.py')
-rw-r--r-- | cffi/recompiler.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cffi/recompiler.py b/cffi/recompiler.py index 0bd0045..7b0797d 100644 --- a/cffi/recompiler.py +++ b/cffi/recompiler.py @@ -1431,7 +1431,7 @@ def _patch_for_target(patchlist, target): def recompile(ffi, module_name, preamble, tmpdir='.', call_c_compiler=True, c_file=None, source_extension='.c', extradir=None, - compiler_verbose=1, target=None, **kwds): + compiler_verbose=1, target=None, debug=None, **kwds): if not isinstance(module_name, str): module_name = module_name.encode('ascii') if ffi._windows_unicode: @@ -1467,7 +1467,8 @@ def recompile(ffi, module_name, preamble, tmpdir='.', call_c_compiler=True, if target != '*': _patch_for_target(patchlist, target) os.chdir(tmpdir) - outputfilename = ffiplatform.compile('.', ext, compiler_verbose) + outputfilename = ffiplatform.compile('.', ext, + compiler_verbose, debug) finally: os.chdir(cwd) _unpatch_meths(patchlist) |