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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/ccache.gni") | 9 import("//build/toolchain/ccache.gni") |
10 | 10 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 275 |
276 # Experimentation found that using four linking threads | 276 # Experimentation found that using four linking threads |
277 # saved ~20% of link time. | 277 # saved ~20% of link time. |
278 # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_threa
d/thread/281527606915bb36 | 278 # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_threa
d/thread/281527606915bb36 |
279 # Only apply this to the target linker, since the host | 279 # Only apply this to the target linker, since the host |
280 # linker might not be gold, but isn't used much anyway. | 280 # linker might not be gold, but isn't used much anyway. |
281 # TODO(raymes): Disable threading because gold is frequently | 281 # TODO(raymes): Disable threading because gold is frequently |
282 # crashing on the bots: crbug.com/161942. | 282 # crashing on the bots: crbug.com/161942. |
283 #"-Wl,--threads", | 283 #"-Wl,--threads", |
284 #"-Wl,--thread-count=4", | 284 #"-Wl,--thread-count=4", |
285 "-Wl,--gdb-index", | |
286 ] | 285 ] |
287 | 286 |
288 if (!using_sanitizer && !(is_android && use_order_profiling)) { | 287 if (!using_sanitizer && !(is_android && use_order_profiling)) { |
289 # TODO(brettw) common.gypi has this only for target toolset. | 288 # TODO(brettw) common.gypi has this only for target toolset. |
290 ldflags += [ "-Wl,--icf=all" ] | 289 ldflags += [ "-Wl,--icf=all" ] |
291 } | 290 } |
292 | 291 |
293 # TODO(thestig): Make this flag work with GN. | 292 # TODO(thestig): Make this flag work with GN. |
294 #if (!is_official_build && !is_chromeos && !(is_asan || is_lsan || is_tsan |
| is_msan)) { | 293 #if (!is_official_build && !is_chromeos && !(is_asan || is_lsan || is_tsan |
| is_msan)) { |
295 # ldflags += [ | 294 # ldflags += [ |
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 if (symbol_level == 0) { | 1313 if (symbol_level == 0) { |
1315 configs = [ ":no_symbols" ] | 1314 configs = [ ":no_symbols" ] |
1316 } else if (symbol_level == 1) { | 1315 } else if (symbol_level == 1) { |
1317 configs = [ ":minimal_symbols" ] | 1316 configs = [ ":minimal_symbols" ] |
1318 } else if (symbol_level == 2) { | 1317 } else if (symbol_level == 2) { |
1319 configs = [ ":symbols" ] | 1318 configs = [ ":symbols" ] |
1320 } else { | 1319 } else { |
1321 assert(false) | 1320 assert(false) |
1322 } | 1321 } |
1323 } | 1322 } |
OLD | NEW |