OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 # TODO(jdduke) Re-enable on mips after resolving linking | 1175 # TODO(jdduke) Re-enable on mips after resolving linking |
1176 # issues with libc++ (crbug.com/456380). | 1176 # issues with libc++ (crbug.com/456380). |
1177 if (current_cpu != "mipsel" && current_cpu != "mips64el") { | 1177 if (current_cpu != "mipsel" && current_cpu != "mips64el") { |
1178 common_optimize_on_ldflags += [ | 1178 common_optimize_on_ldflags += [ |
1179 # Warn in case of text relocations. | 1179 # Warn in case of text relocations. |
1180 "-Wl,--warn-shared-textrel", | 1180 "-Wl,--warn-shared-textrel", |
1181 ] | 1181 ] |
1182 } | 1182 } |
1183 } | 1183 } |
1184 | 1184 |
1185 if (is_mac) { | 1185 if (is_mac || is_ios) { |
1186 if (symbol_level == 2) { | 1186 if (symbol_level == 2) { |
1187 # Mac dead code stripping requires symbols. | 1187 # Mac dead code stripping requires symbols. |
1188 common_optimize_on_ldflags += [ "-Wl,-dead_strip" ] | 1188 common_optimize_on_ldflags += [ "-Wl,-dead_strip" ] |
1189 } | 1189 } |
1190 } else { | 1190 } else { |
1191 # Non-Mac Posix linker flags. | 1191 # Non-Mac Posix linker flags. |
1192 common_optimize_on_ldflags += [ | 1192 common_optimize_on_ldflags += [ |
1193 # Specifically tell the linker to perform optimizations. | 1193 # Specifically tell the linker to perform optimizations. |
1194 # See http://lwn.net/Articles/192624/ . | 1194 # See http://lwn.net/Articles/192624/ . |
1195 "-Wl,-O1", | 1195 "-Wl,-O1", |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 cflags += [ "-gsplit-dwarf" ] | 1316 cflags += [ "-gsplit-dwarf" ] |
1317 } | 1317 } |
1318 } | 1318 } |
1319 } | 1319 } |
1320 | 1320 |
1321 config("no_symbols") { | 1321 config("no_symbols") { |
1322 if (!is_win) { | 1322 if (!is_win) { |
1323 cflags = [ "-g0" ] | 1323 cflags = [ "-g0" ] |
1324 } | 1324 } |
1325 } | 1325 } |
OLD | NEW |