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

Side by Side Diff: build/common.gypi

Issue 6267004: Use early expansion for debug_optimize and release_optimize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 ], 944 ],
945 'configurations': { 945 'configurations': {
946 'Debug_Base': { 946 'Debug_Base': {
947 'variables': { 947 'variables': {
948 'debug_optimize%': '0', 948 'debug_optimize%': '0',
949 }, 949 },
950 'defines': [ 950 'defines': [
951 '_DEBUG', 951 '_DEBUG',
952 ], 952 ],
953 'cflags': [ 953 'cflags': [
954 '-O>(debug_optimize)', 954 '-O<(debug_optimize)',
Mark Mentovai 2011/01/24 19:14:09 The point of late expansion is that individual tar
955 '-g', 955 '-g',
956 ], 956 ],
957 }, 957 },
958 'Release_Base': { 958 'Release_Base': {
959 'variables': { 959 'variables': {
960 'release_optimize%': '2', 960 'release_optimize%': '2',
961 # Binaries become big and gold is unable to perform GC 961 # Binaries become big and gold is unable to perform GC
962 # and remove unused sections for some of test targets 962 # and remove unused sections for some of test targets
963 # on 32 bit platform. 963 # on 32 bit platform.
964 # (This is currently observed only in chromeos valgrind bots) 964 # (This is currently observed only in chromeos valgrind bots)
965 # The following flag is to disable --gc-sections linker 965 # The following flag is to disable --gc-sections linker
966 # option for these bots. 966 # option for these bots.
967 'no_gc_sections%': 0, 967 'no_gc_sections%': 0,
968 }, 968 },
969 'cflags': [ 969 'cflags': [
970 '-O>(release_optimize)', 970 '-O<(release_optimize)',
971 # Don't emit the GCC version ident directives, they just end up 971 # Don't emit the GCC version ident directives, they just end up
972 # in the .comment section taking up binary size. 972 # in the .comment section taking up binary size.
973 '-fno-ident', 973 '-fno-ident',
974 # Put data and code in their own sections, so that unused symbols 974 # Put data and code in their own sections, so that unused symbols
975 # can be removed at link time with --gc-sections. 975 # can be removed at link time with --gc-sections.
976 '-fdata-sections', 976 '-fdata-sections',
977 '-ffunction-sections', 977 '-ffunction-sections',
978 ], 978 ],
979 'ldflags': [ 979 'ldflags': [
980 # Specifically tell the linker to perform optimizations. 980 # Specifically tell the linker to perform optimizations.
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 # and therefore SYMROOT, needs to be set at the project level. 1504 # and therefore SYMROOT, needs to be set at the project level.
1505 'SYMROOT': '<(DEPTH)/xcodebuild', 1505 'SYMROOT': '<(DEPTH)/xcodebuild',
1506 }, 1506 },
1507 } 1507 }
1508 1508
1509 # Local Variables: 1509 # Local Variables:
1510 # tab-width:2 1510 # tab-width:2
1511 # indent-tabs-mode:nil 1511 # indent-tabs-mode:nil
1512 # End: 1512 # End:
1513 # vim: set expandtab tabstop=2 shiftwidth=2: 1513 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698