mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
scons: Properly generate PDB files on MSVC.
This commit is contained in:
parent
bb68acbf8d
commit
6d336588ed
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue