[pypy-commit] pypy default: Compile the shared libs used for tests with "-g -O0".
arigo
noreply at buildbot.pypy.org
Sun Feb 15 10:13:52 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r75885:1abbb0a9835d
Date: 2015-02-15 10:03 +0100
http://bitbucket.org/pypy/pypy/changeset/1abbb0a9835d/
Log: Compile the shared libs used for tests with "-g -O0".
diff --git a/rpython/translator/tool/cbuild.py b/rpython/translator/tool/cbuild.py
--- a/rpython/translator/tool/cbuild.py
+++ b/rpython/translator/tool/cbuild.py
@@ -293,7 +293,8 @@
d['separate_module_files'] = ()
return files, ExternalCompilationInfo(**d)
- def compile_shared_lib(self, outputfilename=None, ignore_a_files=False):
+ def compile_shared_lib(self, outputfilename=None, ignore_a_files=False,
+ debug_mode=True):
self = self.convert_sources_to_files()
if ignore_a_files:
if not [fn for fn in self.link_files if fn.endswith('.a')]:
@@ -318,6 +319,8 @@
if ignore_a_files:
d['link_files'] = [fn for fn in d['link_files']
if not fn.endswith('.a')]
+ if debug_mode and sys.platform != 'win32':
+ d['compile_extra'] = d['compile_extra'] + ('-g', '-O0')
d['compile_extra'] = d['compile_extra'] + (
'-DRPY_EXTERN=RPY_EXPORTED',)
self = ExternalCompilationInfo(**d)
More information about the pypy-commit
mailing list