Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 5216fec230f92058d3411b8b315a152b35fb7ef5..183654cfd4e92aeeeca0f21255cb589b45f777a5 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -74,7 +74,10 @@ |
(is_chromecast && !is_cast_desktop_build && !is_debug) |
# If true, optimize for size. Does not affect windows builds. |
- optimize_for_size = true |
+ # Linux & Mac favor speed over size. |
+ # TODO(brettw) it's weird that Mac and desktop Linux are different. We should |
+ # explore favoring size over speed in this case as well. |
+ optimize_for_size = is_android || is_ios |
# Enable fatal linker warnings. Building Chromium with certain versions |
# of binutils can cause linker warning. |