scons: Disable frame pointer omission for all build types except release.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 8 Mar 2011 13:18:56 +0000 (13:18 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 22 Jan 2013 20:19:28 +0000 (20:19 +0000)
In particular for checked builds, where debug_backtrace_capture relies
on it.

scons/gallium.py

index 7207c6bb26cefe6a37dda5d9e6be41974e01885a..a8b1f0301e2b8add9cbdf8cd9f8203617eb4880e 100755 (executable)
@@ -399,7 +399,6 @@ def generate(env):
             ccflags += [
               '/Od', # disable optimizations
               '/Oi', # enable intrinsic functions
-              '/Oy-', # disable frame pointer omission
             ]
         else:
             ccflags += [
@@ -411,6 +410,7 @@ def generate(env):
             ]
         else:
             ccflags += [
+                '/Oy-', # disable frame pointer omission
                 '/GL-', # disable whole program optimization
             ]
         ccflags += [