Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 894463003: Linux: Enable multi-threading with the gold linker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 # TODO(raymes): Disable threading because gold is frequently 383 "-Wl,--threads",
384 # crashing on the bots: crbug.com/161942. 384 "-Wl,--thread-count=4",
385 #"-Wl,--threads",
386 #"-Wl,--thread-count=4",
387 ] 385 ]
388 } 386 }
389 387
390 if (linux_use_bundled_binutils) { 388 if (linux_use_bundled_binutils) {
391 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", 389 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin",
392 root_build_dir) 390 root_build_dir)
393 cflags += [ "-B$binutils_path" ] 391 cflags += [ "-B$binutils_path" ]
394 } 392 }
395 393
396 # Clang-specific compiler flags setup. 394 # Clang-specific compiler flags setup.
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 cflags += [ "-gsplit-dwarf" ] 1051 cflags += [ "-gsplit-dwarf" ]
1054 } 1052 }
1055 } 1053 }
1056 } 1054 }
1057 1055
1058 config("no_symbols") { 1056 config("no_symbols") {
1059 if (!is_win) { 1057 if (!is_win) {
1060 cflags = [ "-g0" ] 1058 cflags = [ "-g0" ]
1061 } 1059 }
1062 } 1060 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698