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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 'cflags!': [ | 1117 'cflags!': [ |
1118 '-fno-ident', | 1118 '-fno-ident', |
1119 ], | 1119 ], |
1120 }], | 1120 }], |
1121 ['profiling==1', { | 1121 ['profiling==1', { |
1122 'cflags': [ | 1122 'cflags': [ |
1123 '-fno-omit-frame-pointer', | 1123 '-fno-omit-frame-pointer', |
1124 '-g', | 1124 '-g', |
1125 ], | 1125 ], |
1126 }], | 1126 }], |
| 1127 # At gyp time, we test the linker for ICF support; this flag |
| 1128 # is then provided to us by gyp. (Currently only gold supports |
| 1129 # an --icf flag.) |
| 1130 ['LINKER_SUPPORTS_ICF==1', { |
| 1131 'ldflags': [ |
| 1132 '-Wl,--icf=safe', |
| 1133 ] |
| 1134 }], |
1127 ] | 1135 ] |
1128 }, | 1136 }, |
1129 }, | 1137 }, |
1130 'variants': { | 1138 'variants': { |
1131 'coverage': { | 1139 'coverage': { |
1132 'cflags': ['-fprofile-arcs', '-ftest-coverage'], | 1140 'cflags': ['-fprofile-arcs', '-ftest-coverage'], |
1133 'ldflags': ['-fprofile-arcs'], | 1141 'ldflags': ['-fprofile-arcs'], |
1134 }, | 1142 }, |
1135 'profile': { | 1143 'profile': { |
1136 'cflags': ['-pg', '-g'], | 1144 'cflags': ['-pg', '-g'], |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 # and therefore SYMROOT, needs to be set at the project level. | 1709 # and therefore SYMROOT, needs to be set at the project level. |
1702 'SYMROOT': '<(DEPTH)/xcodebuild', | 1710 'SYMROOT': '<(DEPTH)/xcodebuild', |
1703 }, | 1711 }, |
1704 } | 1712 } |
1705 | 1713 |
1706 # Local Variables: | 1714 # Local Variables: |
1707 # tab-width:2 | 1715 # tab-width:2 |
1708 # indent-tabs-mode:nil | 1716 # indent-tabs-mode:nil |
1709 # End: | 1717 # End: |
1710 # vim: set expandtab tabstop=2 shiftwidth=2: | 1718 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |