|
|
DescriptionAdd GN arg to optimize for size
BUG=internal b/27889508
Committed: https://crrev.com/3bca76f6d2a14ba232c08fa133d0186679a3f78e
Cr-Commit-Position: refs/heads/master@{#386826}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Cleanup #
Total comments: 2
Patch Set 3 : Move comment #Messages
Total messages: 18 (7 generated)
Description was changed from ========== Add GN arg to optimize for size BUG=internal b/27889508 ========== to ========== Add GN arg to optimize for size BUG=internal b/27889508 ==========
bcf@chromium.org changed reviewers: + dpranke@chromium.org, halliwell@chromium.org, slan@chromium.org
For Chromecast we would like to have the option to conditionally specify -Os for some builds.
https://codereview.chromium.org/1881193002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1881193002/diff/1/build/config/compiler/BUILD... build/config/compiler/BUILD.gn:85: optimize_size = false nit: optimize_for_size https://codereview.chromium.org/1881193002/diff/1/build/config/compiler/BUILD... build/config/compiler/BUILD.gn:1215: } else if (optimize_size || is_android || is_ios) { nit: What about making this condition simply } else if(optimize_for_size) { and set the default to (is_android || is_ios) in the declare_args block?
https://codereview.chromium.org/1881193002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1881193002/diff/1/build/config/compiler/BUILD... build/config/compiler/BUILD.gn:85: optimize_size = false On 2016/04/12 20:34:37, slan wrote: > nit: optimize_for_size Done. https://codereview.chromium.org/1881193002/diff/1/build/config/compiler/BUILD... build/config/compiler/BUILD.gn:1215: } else if (optimize_size || is_android || is_ios) { On 2016/04/12 20:34:37, slan wrote: > nit: What about making this condition simply > > } else if(optimize_for_size) { > > and set the default to (is_android || is_ios) in the declare_args block? > Done.
This change l-g-t-m, but let's hear what Dirk thinks. https://codereview.chromium.org/1881193002/diff/20001/build/config/compiler/B... File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1881193002/diff/20001/build/config/compiler/B... build/config/compiler/BUILD.gn:1219: # Linux & Mac favor speed over size. nit: It might make more sense now to move this comment up to the flag declaration (where you've assigned the default value based on the platform)
https://codereview.chromium.org/1881193002/diff/20001/build/config/compiler/B... File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1881193002/diff/20001/build/config/compiler/B... build/config/compiler/BUILD.gn:1219: # Linux & Mac favor speed over size. On 2016/04/12 20:50:19, slan wrote: > nit: It might make more sense now to move this comment up to the flag > declaration (where you've assigned the default value based on the platform) > Done.
lgtm
The CQ bit was checked by bcf@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881193002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881193002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by bcf@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1881193002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1881193002/40001
Message was sent while issue was closed.
Description was changed from ========== Add GN arg to optimize for size BUG=internal b/27889508 ========== to ========== Add GN arg to optimize for size BUG=internal b/27889508 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Add GN arg to optimize for size BUG=internal b/27889508 ========== to ========== Add GN arg to optimize for size BUG=internal b/27889508 Committed: https://crrev.com/3bca76f6d2a14ba232c08fa133d0186679a3f78e Cr-Commit-Position: refs/heads/master@{#386826} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/3bca76f6d2a14ba232c08fa133d0186679a3f78e Cr-Commit-Position: refs/heads/master@{#386826} |