summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SConstruct6
1 files changed, 3 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index e4926f29b61..393936b4c89 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: