OLD | NEW |
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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 'Release_Base': { | 1078 'Release_Base': { |
1079 'variables': { | 1079 'variables': { |
1080 'release_optimize%': '2', | 1080 'release_optimize%': '2', |
1081 # Binaries become big and gold is unable to perform GC | 1081 # Binaries become big and gold is unable to perform GC |
1082 # and remove unused sections for some of test targets | 1082 # and remove unused sections for some of test targets |
1083 # on 32 bit platform. | 1083 # on 32 bit platform. |
1084 # (This is currently observed only in chromeos valgrind bots) | 1084 # (This is currently observed only in chromeos valgrind bots) |
1085 # The following flag is to disable --gc-sections linker | 1085 # The following flag is to disable --gc-sections linker |
1086 # option for these bots. | 1086 # option for these bots. |
1087 'no_gc_sections%': 0, | 1087 'no_gc_sections%': 0, |
| 1088 |
| 1089 # TODO(bradnelson): reexamine how this is done if we change the |
| 1090 # expansion of configurations |
| 1091 'release_valgrind_build%': 0, |
1088 }, | 1092 }, |
1089 'cflags': [ | 1093 'cflags': [ |
1090 '-O>(release_optimize)', | 1094 '-O>(release_optimize)', |
1091 # Don't emit the GCC version ident directives, they just end up | 1095 # Don't emit the GCC version ident directives, they just end up |
1092 # in the .comment section taking up binary size. | 1096 # in the .comment section taking up binary size. |
1093 '-fno-ident', | 1097 '-fno-ident', |
1094 # Put data and code in their own sections, so that unused symbols | 1098 # Put data and code in their own sections, so that unused symbols |
1095 # can be removed at link time with --gc-sections. | 1099 # can be removed at link time with --gc-sections. |
1096 '-fdata-sections', | 1100 '-fdata-sections', |
1097 '-ffunction-sections', | 1101 '-ffunction-sections', |
(...skipping 17 matching lines...) Expand all Loading... |
1115 }], | 1119 }], |
1116 ['profiling==1', { | 1120 ['profiling==1', { |
1117 'cflags': [ | 1121 'cflags': [ |
1118 '-fno-omit-frame-pointer', | 1122 '-fno-omit-frame-pointer', |
1119 '-g', | 1123 '-g', |
1120 ], | 1124 ], |
1121 }], | 1125 }], |
1122 # At gyp time, we test the linker for ICF support; this flag | 1126 # At gyp time, we test the linker for ICF support; this flag |
1123 # is then provided to us by gyp. (Currently only gold supports | 1127 # is then provided to us by gyp. (Currently only gold supports |
1124 # an --icf flag.) | 1128 # an --icf flag.) |
1125 ['LINKER_SUPPORTS_ICF==1', { | 1129 ['LINKER_SUPPORTS_ICF==1 and release_valgrind_build==0', { |
1126 'ldflags': [ | 1130 'ldflags': [ |
1127 '-Wl,--icf=safe', | 1131 '-Wl,--icf=safe', |
1128 ] | 1132 ] |
1129 }], | 1133 }], |
1130 ] | 1134 ] |
1131 }, | 1135 }, |
1132 }, | 1136 }, |
1133 'variants': { | 1137 'variants': { |
1134 'coverage': { | 1138 'coverage': { |
1135 'cflags': ['-fprofile-arcs', '-ftest-coverage'], | 1139 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 # and therefore SYMROOT, needs to be set at the project level. | 1711 # and therefore SYMROOT, needs to be set at the project level. |
1708 'SYMROOT': '<(DEPTH)/xcodebuild', | 1712 'SYMROOT': '<(DEPTH)/xcodebuild', |
1709 }, | 1713 }, |
1710 } | 1714 } |
1711 | 1715 |
1712 # Local Variables: | 1716 # Local Variables: |
1713 # tab-width:2 | 1717 # tab-width:2 |
1714 # indent-tabs-mode:nil | 1718 # indent-tabs-mode:nil |
1715 # End: | 1719 # End: |
1716 # vim: set expandtab tabstop=2 shiftwidth=2: | 1720 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |