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

Unified Diff: build/common.gypi

Issue 9360032: linux: migrate linker --threads flag out of gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index 5c5847e2fe512c032c5b4dab20f0d739aebfd682..1b3b0304c929c267e075ab24e0a65ac4b8133e72 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -2000,6 +2000,13 @@
'cflags': ['-finstrument-functions'],
}],
['linux_use_gold_flags==1', {
+ 'ldflags': [
+ # Experimentation found that using four linking threads
+ # saved ~20% of link time.
+ # https://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/281527606915bb36
+ '-Wl,--threads',
+ '-Wl,--thread-count=4',
+ ],
'conditions': [
['release_valgrind_build==0', {
'target_conditions': [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698