[Python-checkins] python/dist/src/Lib/distutils msvccompiler.py,
1.60, 1.61
theller at users.sourceforge.net
theller at users.sourceforge.net
Wed Nov 10 10:02:00 CET 2004
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23302
Modified Files:
msvccompiler.py
Log Message:
Avoid a linker warning: MSVC 7 doesn't support /pdb:None, the debug
info will always be in a .pdb file.
Index: msvccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/msvccompiler.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- msvccompiler.py 18 Jul 2004 06:14:42 -0000 1.60
+++ msvccompiler.py 10 Nov 2004 09:01:41 -0000 1.61
@@ -237,9 +237,14 @@
'/Z7', '/D_DEBUG']
self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO']
- self.ldflags_shared_debug = [
- '/DLL', '/nologo', '/INCREMENTAL:no', '/pdb:None', '/DEBUG'
- ]
+ if self.__version >= 7:
+ self.ldflags_shared_debug = [
+ '/DLL', '/nologo', '/INCREMENTAL:no', '/DEBUG'
+ ]
+ else:
+ self.ldflags_shared_debug = [
+ '/DLL', '/nologo', '/INCREMENTAL:no', '/pdb:None', '/DEBUG'
+ ]
self.ldflags_static = [ '/nologo']
More information about the Python-checkins
mailing list