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

Issue 8983002: Allow targets to self-select optimization level in official builds. (Closed)

Created:
9 years ago by Sigurður Ásgeirsson
Modified:
9 years ago
Reviewers:
bradnelson, M-A Ruel
CC:
chromium-reviews, kareng
Visibility:
Public.

Description

With this change, each target can select an optimization level for Windows official builds by setting a variable name "optimize" to one of three possible values: - "size"; optimizes for minimal code size, the default. - "speed"; optimizes for speed over code size. - "max"; turns on link time code generation and whole program optimization, which is very expensive and should be used sparingly. Note that this change by itself lowers the optimization level to "size" for all targets. Separate changes to the V8 and WebKit repos will be needed to bring up their optimization levels to WPO. BUG=108167 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115187

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use target_defaults and target_options. #

Total comments: 3

Patch Set 3 : Rebase to ToT #

Patch Set 4 : Fix merge resolution issue. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -12 lines) Patch
M build/common.gypi View 1 2 3 4 chunks +61 lines, -5 lines 1 comment Download
M build/internal/release_defaults.gypi View 1 1 chunk +6 lines, -0 lines 0 comments Download
M build/internal/release_impl.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M build/internal/release_impl_official.gypi View 1 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bradn
http://codereview.chromium.org/8983002/diff/1/build/internal/release_impl_official.gypi File build/internal/release_impl_official.gypi (right): http://codereview.chromium.org/8983002/diff/1/build/internal/release_impl_official.gypi#newcode22 build/internal/release_impl_official.gypi:22: 'VCLinkerTool': { How about using target_conditions to inject this ...
9 years ago (2011-12-16 23:44:45 UTC) #1
Sigurður Ásgeirsson
I agree, that's a much better way to do it. How about calling the variable ...
9 years ago (2011-12-17 04:03:42 UTC) #2
bradn
SGTM On Fri, Dec 16, 2011 at 8:03 PM, Sigurður Ásgeirsson <siggi@chromium.org>wrote: > I agree, ...
9 years ago (2011-12-17 06:55:21 UTC) #3
Sigurður Ásgeirsson
With this change, each target can select an optimization level for Windows official builds by ...
9 years ago (2011-12-20 14:27:26 UTC) #4
Sigurður Ásgeirsson
PTAL
9 years ago (2011-12-20 14:40:39 UTC) #5
M-A Ruel
lgtm http://codereview.chromium.org/8983002/diff/4001/build/internal/release_impl_official.gypi File build/internal/release_impl_official.gypi (right): http://codereview.chromium.org/8983002/diff/4001/build/internal/release_impl_official.gypi#newcode17 build/internal/release_impl_official.gypi:17: '/expectedoutputsize:120000000' side note: would /expectedoutputsize:160000000 make more sense?
9 years ago (2011-12-20 14:49:12 UTC) #6
Sigurður Ásgeirsson
Thanks. http://codereview.chromium.org/8983002/diff/4001/build/internal/release_impl_official.gypi File build/internal/release_impl_official.gypi (right): http://codereview.chromium.org/8983002/diff/4001/build/internal/release_impl_official.gypi#newcode17 build/internal/release_impl_official.gypi:17: '/expectedoutputsize:120000000' On 2011/12/20 14:49:12, Marc-Antoine Ruel wrote: > ...
9 years ago (2011-12-20 15:02:01 UTC) #7
M-A Ruel
http://codereview.chromium.org/8983002/diff/4001/build/internal/release_impl_official.gypi File build/internal/release_impl_official.gypi (right): http://codereview.chromium.org/8983002/diff/4001/build/internal/release_impl_official.gypi#newcode17 build/internal/release_impl_official.gypi:17: '/expectedoutputsize:120000000' On 2011/12/20 15:02:01, Ruðrugis wrote: > On 2011/12/20 ...
9 years ago (2011-12-20 15:03:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siggi@chromium.org/8983002/4001
9 years ago (2011-12-20 15:08:29 UTC) #9
commit-bot: I haz the power
Try job failure for 8983002-4001 on linux_shared for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_shared&number=1010 Step "update" is always ...
9 years ago (2011-12-20 15:09:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siggi@chromium.org/8983002/11002
9 years ago (2011-12-20 16:25:30 UTC) #11
commit-bot: I haz the power
Try job failure for 8983002-11002 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=5684 Step "update" is always ...
9 years ago (2011-12-20 16:27:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siggi@chromium.org/8983002/10002
9 years ago (2011-12-20 18:13:19 UTC) #13
Nico
http://codereview.chromium.org/8983002/diff/10002/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8983002/diff/10002/build/common.gypi#newcode2511 build/common.gypi:2511: 'optimize%': 'size', Probably too late, but: Should this be ...
9 years ago (2011-12-20 20:03:08 UTC) #14
Nico
fff, forgot to uncheck "add as reviewer". removing myself hoping that cq only checks at ...
9 years ago (2011-12-20 20:03:45 UTC) #15
commit-bot: I haz the power
9 years ago (2011-12-20 21:37:39 UTC) #16
Change committed as 115187

Powered by Google App Engine
This is Rietveld 408576698