OSDN Git Service

scons: Properly generate PDB files on MSVC.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 26 Feb 2008 13:31:03 +0000 (22:31 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 26 Feb 2008 14:06:09 +0000 (23:06 +0900)
SConstruct

index e4926f2..393936b 100644 (file)
@@ -151,17 +151,17 @@ if msvc:
                cflags = [
                        '/Od', # disable optimizations
                        '/Oy-', # disable frame pointer omission
-                       '/Zi', # enable enable debugging information
                ]
        else:
                cflags = [
                        '/Ox', # maximum optimizations
                        '/Os', # favor code space
-                       '/Zi', # enable enable debugging information
                ]
        env.Append(CFLAGS = cflags)
        env.Append(CXXFLAGS = cflags)
-
+       # Put debugging information in a separate .pdb file for each object file as
+       # descrived in the scons manpage
+       env['CCPDBFLAGS'] = '/Zi /Fd${TARGET}.pdb'
 
 # Defines
 if debug: