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

Unified Diff: build/common.gypi

Issue 225393007: Use -fuse-ld=gold when supported to select gold. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating comment and rebasing. Created 6 years, 8 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 c87ec6322947d3e3ffc9e4a46fab30ef06cc0ad1..7f5d26b04ecccb378fba02c8f571e2a0290b5d6c 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3875,6 +3875,19 @@
}],
],
}],
+ # Newer gcc's support -fuse-ld, use the flag to force gold
+ # selection.
+ # gcc -- http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Optimize-Options.html
+ # TODO(mithro): Watch for clang support at following thread:
+ # http://clang-developers.42468.n3.nabble.com/Adding-fuse-ld-support-to-clang-td4032180.html
+ ['gcc_version>=48', {
+ 'cflags': [
+ '-fuse-ld=gold',
+ ],
+ 'ldflags': [
+ '-fuse-ld=gold',
+ ],
+ }]
],
}],
['linux_use_gold_binary==1', {
« 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