Commit c58e9eab authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

[Fuchsia] Lower the debug build binary size.

This changes the optimization level for debug builds on Fuchsia to
optimize for size. This fixes an issue where the KVM would run out of
space on the Fuchsia debug component bot.

Bug: 910243
Change-Id: I7b1257c26b820af97b7c29151cde8f1a52692f5e
Reviewed-on: https://chromium-review.googlesource.com/c/1352621
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612337}
parent cfef86c2
...@@ -1996,6 +1996,10 @@ config("no_optimize") { ...@@ -1996,6 +1996,10 @@ config("no_optimize") {
} else { } else {
cflags = [ "-Os" ] + common_optimize_on_cflags cflags = [ "-Os" ] + common_optimize_on_cflags
} }
} else if (is_fuchsia) {
# On Fuchsia, we optimize for size here to reduce the size of debug build
# packages so they can be run in a KVM. See crbug.com/910243 for details.
cflags = [ "-Og" ]
} else { } else {
cflags = [ "-O0" ] cflags = [ "-O0" ]
ldflags = [] ldflags = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment