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

Issue 2772583003: Split ui.lib to avoid hitting 4 GB limit (Closed)

Created:
3 years, 9 months ago by brucedawson
Modified:
3 years, 9 months ago
Reviewers:
brettw
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Split ui.lib to avoid hitting 4 GB limit In some build configurations on Windows (official build, goma with symbol_level = 2) ui.lib can grow to about 4 GB which leads to cryptic build failures. Rather than trying to carefully calculate which configurations need to split ui.lib it is simpler to just always split it on Windows. There is no real 'cost' for doing this other than some potential confusion when developers look at the build internals. Instead of building obj\chrome\browser\ui\ui.lib the files built will be obj\chrome\browser\ui\ui_?.lib where '?' is 0-4. This also fixes up some errors in the comments for the previous change which covered browser.lib. With this change the next largest .lib file created when building the 'chrome' target is extensions.lib at 1.9 GB, which is a lot of safety margin (limit is 4 GB for VS 2015 and 2017). BUG=701862 Review-Url: https://codereview.chromium.org/2772583003 Cr-Commit-Position: refs/heads/master@{#459296} Committed: https://chromium.googlesource.com/chromium/src/+/07b41129c2000598bba17282207731e8946a4031

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -6 lines) Patch
M chrome/browser/BUILD.gn View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (8 generated)
brucedawson
Last change to guarantee we don't hit .lib size limits even on goma builds. PTAL.
3 years, 9 months ago (2017-03-23 21:10:49 UTC) #6
brettw
lgtm
3 years, 9 months ago (2017-03-23 22:06:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2772583003/1
3 years, 9 months ago (2017-03-24 00:17:43 UTC) #9
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 00:23:26 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/07b41129c2000598bba172822077...

Powered by Google App Engine
This is Rietveld 408576698