Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: build/common.gypi

Issue 8227011: Make OmitFramePointer adjustable for Win/Release build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | build/internal/release_defaults.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 # those variables are not set at target scope. As a workaround, 868 # those variables are not set at target scope. As a workaround,
869 # if chromium_code is not set at target scope, define it in target scope 869 # if chromium_code is not set at target scope, define it in target scope
870 # to contain whatever value it has during early variable expansion. 870 # to contain whatever value it has during early variable expansion.
871 # That's enough to make it available during target conditional 871 # That's enough to make it available during target conditional
872 # processing. 872 # processing.
873 'chromium_code%': '<(chromium_code)', 873 'chromium_code%': '<(chromium_code)',
874 874
875 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html 875 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html
876 'mac_release_optimization%': '3', # Use -O3 unless overridden 876 'mac_release_optimization%': '3', # Use -O3 unless overridden
877 'mac_debug_optimization%': '0', # Use -O0 unless overridden 877 'mac_debug_optimization%': '0', # Use -O0 unless overridden
878
878 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx 879 # See http://msdn.microsoft.com/en-us/library/aa652360(VS.71).aspx
879 'win_release_Optimization%': '2', # 2 = /Os 880 'win_release_Optimization%': '2', # 2 = /Os
880 'win_debug_Optimization%': '0', # 0 = /Od 881 'win_debug_Optimization%': '0', # 0 = /Od
882
883 # See http://msdn.microsoft.com/en-us/library/2kxx5t2c(v=vs.80).aspx
884 'win_release_OmitFramePointers%': '1',
885
881 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx 886 # See http://msdn.microsoft.com/en-us/library/8wtf2dfz(VS.71).aspx
882 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off 887 'win_debug_RuntimeChecks%': '3', # 3 = all checks enabled, 0 = off
888
883 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx 889 # See http://msdn.microsoft.com/en-us/library/47238hez(VS.71).aspx
884 'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off, 890 'win_debug_InlineFunctionExpansion%': '', # empty = default, 0 = off,
885 'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max 891 'win_release_InlineFunctionExpansion%': '2', # 1 = only __inline, 2 = max
892
886 # VS inserts quite a lot of extra checks to algorithms like 893 # VS inserts quite a lot of extra checks to algorithms like
887 # std::partial_sort in Debug build which make them O(N^2) 894 # std::partial_sort in Debug build which make them O(N^2)
888 # instead of O(N*logN). This is particularly slow under memory 895 # instead of O(N*logN). This is particularly slow under memory
889 # tools like ThreadSanitizer so we want it to be disablable. 896 # tools like ThreadSanitizer so we want it to be disablable.
890 # See http://msdn.microsoft.com/en-us/library/aa985982(v=VS.80).aspx 897 # See http://msdn.microsoft.com/en-us/library/aa985982(v=VS.80).aspx
891 'win_debug_disable_iterator_debugging%': '0', 898 'win_debug_disable_iterator_debugging%': '0',
892 899
893 'release_extra_cflags%': '', 900 'release_extra_cflags%': '',
894 'debug_extra_cflags%': '', 901 'debug_extra_cflags%': '',
895 'release_valgrind_build%': 0, 902 'release_valgrind_build%': 0,
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 # According to MSVS, InlineFunctionExpansion=0 means 1391 # According to MSVS, InlineFunctionExpansion=0 means
1385 # "default inlining", not "/Ob0". 1392 # "default inlining", not "/Ob0".
1386 # Thus, we have to handle InlineFunctionExpansion==0 separately. 1393 # Thus, we have to handle InlineFunctionExpansion==0 separately.
1387 ['win_release_InlineFunctionExpansion==0', { 1394 ['win_release_InlineFunctionExpansion==0', {
1388 'AdditionalOptions': ['/Ob0'], 1395 'AdditionalOptions': ['/Ob0'],
1389 }], 1396 }],
1390 ['win_release_InlineFunctionExpansion!=""', { 1397 ['win_release_InlineFunctionExpansion!=""', {
1391 'InlineFunctionExpansion': 1398 'InlineFunctionExpansion':
1392 '<(win_release_InlineFunctionExpansion)', 1399 '<(win_release_InlineFunctionExpansion)',
1393 }], 1400 }],
1401
1402 ['win_release_OmitFramePointers==1', {
1403 'OmitFramePointers': 'true',
1404 }],
1405 ['win_release_OmitFramePointers==0', {
1406 'OmitFramePointers': 'false',
1407 }],
1394 ], 1408 ],
1395 }, 1409 },
1396 'VCLinkerTool': { 1410 'VCLinkerTool': {
1397 # LinkIncremental is a tri-state boolean, where 0 means default 1411 # LinkIncremental is a tri-state boolean, where 0 means default
1398 # (i.e., inherit from parent solution), 1 means false, and 1412 # (i.e., inherit from parent solution), 1 means false, and
1399 # 2 means true. 1413 # 2 means true.
1400 'LinkIncremental': '1', 1414 'LinkIncremental': '1',
1401 # This corresponds to the /PROFILE flag which ensures the PDB 1415 # This corresponds to the /PROFILE flag which ensures the PDB
1402 # file contains FIXUP information (growing the PDB file by about 1416 # file contains FIXUP information (growing the PDB file by about
1403 # 5%) but does not otherwise alter the output binary. This 1417 # 5%) but does not otherwise alter the output binary. This
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2520 # settings in target dicts. SYMROOT is a special case, because many other 2534 # settings in target dicts. SYMROOT is a special case, because many other
2521 # Xcode variables depend on it, including variables such as 2535 # Xcode variables depend on it, including variables such as
2522 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 2536 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
2523 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 2537 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
2524 # files to appear (when present) in the UI as actual files and not red 2538 # files to appear (when present) in the UI as actual files and not red
2525 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 2539 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
2526 # and therefore SYMROOT, needs to be set at the project level. 2540 # and therefore SYMROOT, needs to be set at the project level.
2527 'SYMROOT': '<(DEPTH)/xcodebuild', 2541 'SYMROOT': '<(DEPTH)/xcodebuild',
2528 }, 2542 },
2529 } 2543 }
OLDNEW
« no previous file with comments | « no previous file | build/internal/release_defaults.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698