summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-02-12 11:57:45 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-02-12 12:06:30 +0000
commit73ccabc124f2c706d7fde490e4438413d2b94317 (patch)
tree7533fe5735083d14e1b4767397b81afc78afedc8 /scons
parent492e61d94f68c3a4a515cab3cf227eed5b426bdf (diff)
scons: Build DLLs/EXEs with more memory debugger friendlier settings.
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py8
-rw-r--r--scons/generic.py8
2 files changed, 14 insertions, 2 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index fc1ed08e47..3fbac760fd 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,10 +438,15 @@ 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',
'/section:INIT,d',
diff --git a/scons/generic.py b/scons/generic.py
index 2323196673..31a4a79594 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,10 +517,15 @@ 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',
'/section:INIT,d',