mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
scons: Build DLLs/EXEs with more memory debugger friendlier settings.
This commit is contained in:
parent
492e61d94f
commit
73ccabc124
2 changed files with 14 additions and 2 deletions
|
|
@ -347,6 +347,7 @@ def generate(env):
|
|||
'/Od', # disable optimizations
|
||||
'/Oi', # enable intrinsic functions
|
||||
'/Oy-', # disable frame pointer omission
|
||||
'/GL-', # disable whole program optimization
|
||||
]
|
||||
else:
|
||||
cflags += [
|
||||
|
|
@ -437,9 +438,14 @@ def generate(env):
|
|||
linkflags += ['-m32']
|
||||
if env['machine'] == 'x86_64':
|
||||
linkflags += ['-m64']
|
||||
if platform == 'winddk':
|
||||
if platform == 'windows':
|
||||
# See also:
|
||||
# - http://msdn2.microsoft.com/en-us/library/y0zzbyt4.aspx
|
||||
linkflags += [
|
||||
'/fixed:no',
|
||||
'/incremental:no',
|
||||
]
|
||||
if platform == 'winddk':
|
||||
linkflags += [
|
||||
'/merge:_PAGE=PAGE',
|
||||
'/merge:_TEXT=.text',
|
||||
|
|
|
|||
|
|
@ -425,6 +425,7 @@ def generate(env):
|
|||
'/Od', # disable optimizations
|
||||
'/Oi', # enable intrinsic functions
|
||||
'/Oy-', # disable frame pointer omission
|
||||
'/GL-', # disable whole program optimization
|
||||
]
|
||||
else:
|
||||
ccflags += [
|
||||
|
|
@ -516,9 +517,14 @@ def generate(env):
|
|||
linkflags += ['-m32']
|
||||
if env['machine'] == 'x86_64':
|
||||
linkflags += ['-m64']
|
||||
if platform == 'winddk':
|
||||
if platform == 'windows':
|
||||
# See also:
|
||||
# - http://msdn2.microsoft.com/en-us/library/y0zzbyt4.aspx
|
||||
linkflags += [
|
||||
'/fixed:no',
|
||||
'/incremental:no',
|
||||
]
|
||||
if platform == 'winddk':
|
||||
linkflags += [
|
||||
'/merge:_PAGE=PAGE',
|
||||
'/merge:_TEXT=.text',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue