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

Issue 12052029: ninja windows: Make pch work on VS2012, and simplify implementation (Closed)

Created:
7 years, 11 months ago by scottmg
Modified:
7 years, 11 months ago
Reviewers:
Nico
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

ninja windows: Make pch work on VS2012, and simplify implementation Previously, the chromium .gypi files injected a .cc file for PCH, which compiled "normally", and then the generator compiled it again (to a different .obj). Now, the build rule for the injected .cc has its ccflags modified to cause generation of the pch, which matches the msvs generator. Also get to remove the ugly separate 'cc_pch'/'cxx_pch' rules. I believe this will also fix some very unreproducible build errors we were having (the linked bug) because the dependencies for the pch pdb is much simpler. BUG=142362, 143646 Committed: https://code.google.com/p/gyp/source/detail?r=1565

Patch Set 1 #

Patch Set 2 : #

Total comments: 11

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -57 lines) Patch
M pylib/gyp/generator/ninja.py View 1 2 3 4 chunks +17 lines, -33 lines 0 comments Download
M pylib/gyp/msvs_emulation.py View 1 2 3 2 chunks +26 lines, -24 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
scottmg
Tests: test/win/precompiled currently fails on VS2012, and passes with this change. But, we don't have ...
7 years, 11 months ago (2013-01-23 18:52:26 UTC) #1
Nico
https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py#newcode833 pylib/gyp/generator/ninja.py:833: order_only=predepends, variables=variables) This adds a variable to every single ...
7 years, 11 months ago (2013-01-23 19:08:54 UTC) #2
scottmg
https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py#newcode780 pylib/gyp/generator/ninja.py:780: self.WriteVariableList('cflags_c', map(self.ExpandSpecial, cflags_c)) here https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py#newcode833 pylib/gyp/generator/ninja.py:833: order_only=predepends, variables=variables) On ...
7 years, 11 months ago (2013-01-23 19:20:53 UTC) #3
Nico
https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py#newcode833 pylib/gyp/generator/ninja.py:833: order_only=predepends, variables=variables) On 2013/01/23 19:20:53, scottmg wrote: > On ...
7 years, 11 months ago (2013-01-23 19:22:08 UTC) #4
scottmg
On 2013/01/23 19:22:08, Nico wrote: > https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py > File pylib/gyp/generator/ninja.py (right): > > https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py#newcode833 > ...
7 years, 11 months ago (2013-01-23 20:50:53 UTC) #5
Nico
> You mean the one source file per target that has a cflags_cc variables? Ah, ...
7 years, 11 months ago (2013-01-23 21:25:26 UTC) #6
Nico
And another question: Does anything have a dependency on the pch file, or do target ...
7 years, 11 months ago (2013-01-23 21:27:07 UTC) #7
scottmg
https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py#newcode846 pylib/gyp/generator/ninja.py:846: for gch, lang_flag, lang, input in pch_commands: On 2013/01/23 ...
7 years, 11 months ago (2013-01-23 21:32:21 UTC) #8
scottmg
On 2013/01/23 21:27:07, Nico wrote: > And another question: Does anything have a dependency on ...
7 years, 11 months ago (2013-01-23 21:36:21 UTC) #9
Nico
I think I get it now. lgtm, thanks for explaining. https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/12052029/diff/1003/pylib/gyp/generator/ninja.py#newcode846 ...
7 years, 11 months ago (2013-01-23 21:43:35 UTC) #10
scottmg
On 2013/01/23 21:43:35, Nico wrote: > I think I get it now. lgtm, thanks for ...
7 years, 11 months ago (2013-01-23 21:47:48 UTC) #11
scottmg
7 years, 11 months ago (2013-01-23 21:51:59 UTC) #12
(Fix required in WebKit gypi https://bugs.webkit.org/show_bug.cgi?id=107700
before this lands)

Powered by Google App Engine
This is Rietveld 408576698