summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-26 22:31:03 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-26 23:06:09 +0900
commit6d336588edb8318f49a0f611760e7ff8b6861de7 (patch)
tree5dc205197c0af8562725aa853092069294717d50 /SConstruct
parentbb68acbf8dceb3a228c0f1ac18bfabd89a327b14 (diff)
scons: Properly generate PDB files on MSVC.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 3 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index e4926f29b6..393936b4c8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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: