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

Issue 8041022: Use precompiled headers on Windows only when a flag is set. (Closed)

Created:
9 years, 2 months ago by Jói
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Dirk Pranke
Visibility:
Public.

Description

Use precompiled headers on Windows only when a flag is set. I would have preferred if precompiled headers could be enabled by default. The motivation for this change is primarily that Visual Studio does the wrong thing on preprocessor flag changes - instead of rebuilding precompiled headers, it errors out on any file that uses them, saying that the precompiled header was built with different flags! This causes a world of hurt on our infrastructure stuff, particularly on trybots as they may be jumping back and forth between revisions before and after a flag change. Prior to this change, only Debug builds used precompiled headers and Release builds did not. The reason Release builds did not was that official builds were running out of memory with precompiled headers enabled. The distinction of Debug vs. Release is no longer necessary after the flag is added, so removing that extra bit of complexity from the .gyp files. BUG=none TEST=it builds Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102839

Patch Set 1 #

Patch Set 2 : Fix comment. #

Total comments: 2

Patch Set 3 : Change name of flag to match Mac flag. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -27 lines) Patch
M build/common.gypi View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M build/win_precompile.gypi View 1 2 1 chunk +3 lines, -11 lines 0 comments Download
M chrome/installer/mini_installer.gyp View 1 chunk +6 lines, -15 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Jói
9 years, 2 months ago (2011-09-26 16:01:46 UTC) #1
M-A Ruel
Mark, what do you think? http://codereview.chromium.org/8041022/diff/5/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8041022/diff/5/build/common.gypi#newcode221 build/common.gypi:221: 'win_use_pch%': 0, I find ...
9 years, 2 months ago (2011-09-26 16:04:27 UTC) #2
Jói
True, but seeing as they have different default values I'm not sure whether we can ...
9 years, 2 months ago (2011-09-26 16:06:49 UTC) #3
M-A Ruel
On 2011/09/26 16:06:49, Jói wrote: > True, but seeing as they have different default values ...
9 years, 2 months ago (2011-09-26 16:09:05 UTC) #4
Mark Mentovai
http://codereview.chromium.org/8041022/diff/5/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8041022/diff/5/build/common.gypi#newcode221 build/common.gypi:221: 'win_use_pch%': 0, Marc-Antoine Ruel wrote: > I find it ...
9 years, 2 months ago (2011-09-26 16:10:59 UTC) #5
Jói
> Right, but what about using a similar name? e.g. chromium_win_pch? No problem to change ...
9 years, 2 months ago (2011-09-26 16:15:49 UTC) #6
M-A Ruel
On 2011/09/26 16:15:49, Jói wrote: > > Right, but what about using a similar name? ...
9 years, 2 months ago (2011-09-26 16:17:02 UTC) #7
Jói
Done. On Mon, Sep 26, 2011 at 4:17 PM, <maruel@chromium.org> wrote: > On 2011/09/26 16:15:49, ...
9 years, 2 months ago (2011-09-26 16:21:19 UTC) #8
M-A Ruel
lgtm
9 years, 2 months ago (2011-09-26 16:23:03 UTC) #9
M-A Ruel
On 2011/09/26 16:23:03, Marc-Antoine Ruel wrote: > lgtm Please commit asap.
9 years, 2 months ago (2011-09-26 20:21:20 UTC) #10
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/8041022/2003
9 years, 2 months ago (2011-09-26 20:59:23 UTC) #11
commit-bot: I haz the power
Change committed as 102839
9 years, 2 months ago (2011-09-27 00:15:19 UTC) #12
Jói
9 years, 2 months ago (2011-09-27 10:47:40 UTC) #13
Sorry, wasn't able to be around on IRC last night so was going to
commit it this morning.  Thanks for doing it for me.

On Mon, Sep 26, 2011 at 8:21 PM,  <maruel@chromium.org> wrote:
> On 2011/09/26 16:23:03, Marc-Antoine Ruel wrote:
>>
>> lgtm
>
> Please commit asap.
>
> http://codereview.chromium.org/8041022/
>

Powered by Google App Engine
This is Rietveld 408576698