[pypy-svn] r24005 - pypy/dist/pypy/translator/tool
tismer at codespeak.net
tismer at codespeak.net
Mon Mar 6 03:03:25 CET 2006
Author: tismer
Date: Mon Mar 6 03:03:22 2006
New Revision: 24005
Modified:
pypy/dist/pypy/translator/tool/cbuild.py
Log:
enable generation of debug info for win32. This is way more convenient than to have to recompile.
No idea if this can influence program speed, but I don't care since CPython doesn't neither.
Modified: pypy/dist/pypy/translator/tool/cbuild.py
==============================================================================
--- pypy/dist/pypy/translator/tool/cbuild.py (original)
+++ pypy/dist/pypy/translator/tool/cbuild.py Mon Mar 6 03:03:22 2006
@@ -94,7 +94,8 @@
extra_compile_args = []
# ensure correct math on windows
if sys.platform == 'win32':
- extra_compile_args.append('/Op')
+ extra_compile_args.append('/Op') # get extra precision
+ extra_compile_args.append('/PDB:laber') # create debug info
if get_default_compiler() == 'unix':
old_version = False
try:
@@ -273,6 +274,8 @@
self.libraries.append('pthread')
self.compile_extra += ['-O2', '-pthread']
self.link_extra += ['-pthread']
+ if sys.platform == 'win32':
+ self.link_extra += ['/DEBUG'] # generate .pdb file
if sys.platform == 'darwin':
if '/sw/include' not in self.include_dirs:
self.include_dirs.append('/sw/include')
More information about the Pypy-commit
mailing list