From: José Fonseca Date: Thu, 12 Feb 2009 11:57:45 +0000 (+0000) Subject: scons: Build DLLs/EXEs with more memory debugger friendlier settings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73ccabc124f2c706d7fde490e4438413d2b94317;p=mesa.git scons: Build DLLs/EXEs with more memory debugger friendlier settings. --- diff --git a/scons/gallium.py b/scons/gallium.py index fc1ed08e478..3fbac760fdb 100644 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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', diff --git a/scons/generic.py b/scons/generic.py index 23231966731..31a4a795940 100644 --- a/scons/generic.py +++ b/scons/generic.py @@ -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',