summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-11 15:47:33 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-11 15:47:33 +0000
commit626d2d2a382b91f8aa5a4fe9b36ee7dc2eeabd74 (patch)
treed146a51891fb9bd941bcdd5e4ca3b6122baa7a66 /build
parentee4d923be14a0dbe5bdde6e631742e090b7a1ebc (diff)
downloadchromium_src-626d2d2a382b91f8aa5a4fe9b36ee7dc2eeabd74.zip
chromium_src-626d2d2a382b91f8aa5a4fe9b36ee7dc2eeabd74.tar.gz
chromium_src-626d2d2a382b91f8aa5a4fe9b36ee7dc2eeabd74.tar.bz2
Make OmitFramePointer adjustable for Win/Release build.
Also, remove the Optimization hard-coded flags that turned out not to be adjustable as well. TEST=vimdiff against ipc\ipc.vcproj of three different versions: 1) old 2) new (matches "old" except for the addition of OmitFramePointers="true" for Release x64) 3) new with `GYP_DEFINES=win_release_OmitFramePointers=0 win_release_Optimization=2` BUG=99446,96326 Review URL: http://codereview.chromium.org/8227011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104904 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi14
-rw-r--r--build/internal/release_defaults.gypi2
2 files changed, 14 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi
index d3f62fa..eb1a36f 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -864,14 +864,21 @@
# See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html
'mac_release_optimization%': '3', # Use -O3 unless overridden
'mac_debug_optimization%': '0', # Use -O0 unless overridden
+
# See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
'win_release_Optimization%': '2', # 2 = /Os
'win_debug_Optimization%': '0', # 0 = /Od
+
+ # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
+ 'win_release_OmitFramePointers%': '1',
+
# See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx
'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off
+
# See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off,
'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max
+
# VS inserts quite a lot of extra checks to algorithms like
# std::partial_sort in Debug build which make them O(N^2)
# instead of O(N*logN). This is particularly slow under memory
@@ -1380,6 +1387,13 @@
'InlineFunctionExpansion':
'<(win_release_InlineFunctionExpansion)',
}],
+
+ ['win_release_OmitFramePointers==1', {
+ 'OmitFramePointers': 'true',
+ }],
+ ['win_release_OmitFramePointers==0', {
+ 'OmitFramePointers': 'false',
+ }],
],
},
'VCLinkerTool': {
diff --git a/build/internal/release_defaults.gypi b/build/internal/release_defaults.gypi
index bd1c3cf..7f1ddb8 100644
--- a/build/internal/release_defaults.gypi
+++ b/build/internal/release_defaults.gypi
@@ -1,9 +1,7 @@
{
'msvs_settings': {
'VCCLCompilerTool': {
- 'Optimization': '2',
'StringPooling': 'true',
- 'OmitFramePointers': 'true',
},
'VCLinkerTool': {
'LinkIncremental': '1',