diff options
author | Thomas Heller <theller@ctypes.org> | 2004-11-10 09:01:41 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2004-11-10 09:01:41 (GMT) |
commit | 41f7038a3e685a05b648b1d920bfb0bbcba5e632 (patch) | |
tree | 65861c0e43a001cb2ce1a5d8d9c5e4c19fd84d2f /Lib | |
parent | 0cf87be32656b1be34520a3bd6afd3aa2161c8c9 (diff) | |
download | cpython-41f7038a3e685a05b648b1d920bfb0bbcba5e632.zip cpython-41f7038a3e685a05b648b1d920bfb0bbcba5e632.tar.gz cpython-41f7038a3e685a05b648b1d920bfb0bbcba5e632.tar.bz2 |
Avoid a linker warning: MSVC 7 doesn't support /pdb:None, the debug
info will always be in a .pdb file.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/msvccompiler.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index 168881a..ab92801 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -237,9 +237,14 @@ class MSVCCompiler (CCompiler) : '/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'] |