Browse Source

scons: Properly generate PDB files on MSVC.

tags/mesa_20090313
José Fonseca 18 years ago
parent
commit
6d336588ed
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      SConstruct

+ 3
- 3
SConstruct View 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:

Loading…
Cancel
Save