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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { | 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { |
10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 "-fuse-ld=gold", | 373 "-fuse-ld=gold", |
374 | 374 |
375 # TODO(brettw) common.gypi has this only for target toolset. | 375 # TODO(brettw) common.gypi has this only for target toolset. |
376 "-Wl,--icf=safe", | 376 "-Wl,--icf=safe", |
377 | 377 |
378 # Experimentation found that using four linking threads | 378 # Experimentation found that using four linking threads |
379 # saved ~20% of link time. | 379 # saved ~20% of link time. |
380 # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_threa
d/thread/281527606915bb36 | 380 # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_threa
d/thread/281527606915bb36 |
381 # Only apply this to the target linker, since the host | 381 # Only apply this to the target linker, since the host |
382 # linker might not be gold, but isn't used much anyway. | 382 # linker might not be gold, but isn't used much anyway. |
383 "-Wl,--threads", | 383 # TODO(raymes): Disable threading because gold is frequently |
384 "-Wl,--thread-count=4", | 384 # crashing on the bots: crbug.com/161942. |
| 385 #"-Wl,--threads", |
| 386 #"-Wl,--thread-count=4", |
385 ] | 387 ] |
386 } | 388 } |
387 | 389 |
388 if (linux_use_bundled_binutils) { | 390 if (linux_use_bundled_binutils) { |
389 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", | 391 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", |
390 root_build_dir) | 392 root_build_dir) |
391 cflags += [ "-B$binutils_path" ] | 393 cflags += [ "-B$binutils_path" ] |
392 } | 394 } |
393 | 395 |
394 # Clang-specific compiler flags setup. | 396 # Clang-specific compiler flags setup. |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 cflags += [ "-gsplit-dwarf" ] | 1053 cflags += [ "-gsplit-dwarf" ] |
1052 } | 1054 } |
1053 } | 1055 } |
1054 } | 1056 } |
1055 | 1057 |
1056 config("no_symbols") { | 1058 config("no_symbols") { |
1057 if (!is_win) { | 1059 if (!is_win) { |
1058 cflags = [ "-g0" ] | 1060 cflags = [ "-g0" ] |
1059 } | 1061 } |
1060 } | 1062 } |
OLD | NEW |