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

Unified Diff: build/config/compiler/BUILD.gn

Issue 2939923004: Disable ThinLTO optimizations on Linux with LLD. (Closed)
Patch Set: Created 3 years, 6 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/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 45e3854b96c3b60001a89c2cc20e2a62edc804c6..aab7557f9b466a68addf403544518ed4f004f2fa 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -496,6 +496,12 @@ config("compiler") {
} else {
ldflags += [ "-Wl,-plugin-opt,jobs=8" ]
}
+
+ # Disable optimization for now because they increase binary size by too
+ # much.
+ if (is_linux && use_lld) {
+ ldflags += [ "-Wl,--lto-O0" ]
+ }
} else {
cflags += [ "-flto" ]
ldflags += [ "-flto" ]
« 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