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" ] |