Module: Mesa
Branch: gallium-0.1
Commit: 87810d3b7166043917363553d6651151a2f61170
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=87810d3b7166043917363553d6651151a2f61170

Author: José Fonseca <[email protected]>
Date:   Thu Feb 12 11:57:45 2009 +0000

scons: Build DLLs/EXEs with more memory debugger friendlier settings.
(cherry picked from commit 73ccabc124f2c706d7fde490e4438413d2b94317)

---

 scons/gallium.py |    8 +++++++-
 scons/generic.py |    8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/scons/gallium.py b/scons/gallium.py
index 500376c..f559ca0 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -329,6 +329,7 @@ def generate(env):
               '/Od', # disable optimizations
               '/Oi', # enable intrinsic functions
               '/Oy-', # disable frame pointer omission
+              '/GL-', # disable whole program optimization
             ]
         else:
             cflags += [
@@ -419,10 +420,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 e66db44..a7731a1 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -398,6 +398,7 @@ def generate(env):
               '/Od', # disable optimizations
               '/Oi', # enable intrinsic functions
               '/Oy-', # disable frame pointer omission
+              '/GL-', # disable whole program optimization
             ]
         else:
             cflags += [
@@ -488,10 +489,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',

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to