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

Issue 10387164: msvs: fix regression in r1378, environment not set up properly for multiple actions on one input (Closed)

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

Description

msvs: fix regression in r1378, environment not set up properly for multiple actions on one input The previous method (only setup on first iteration of loop) didn't respect that the actions might be distributed across multiple input files, which are run as separate commands. Instead, only do setup_env for first action for a given input. R=grt@chromium.org,jeanluc@chromium.org BUG=gyp:261 Committed: https://code.google.com/p/gyp/source/detail?r=1381

Patch Set 1 #

Patch Set 2 : add comment #

Patch Set 3 : add comment #

Total comments: 1

Patch Set 4 : add comment, use set instead of one-sided dict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, --1 lines) Patch
M pylib/gyp/generator/msvs.py View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
A test/many-actions/file0 View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/many-actions/file1 View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/many-actions/file2 View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/many-actions/file3 View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/many-actions/file4 View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/many-actions/gyptest-many-actions-unsorted.py View 1 chunk +20 lines, -0 lines 0 comments Download
A test/many-actions/many-actions-unsorted.gyp View 1 1 chunk +154 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scottmg
Try this again...
8 years, 7 months ago (2012-05-16 21:56:46 UTC) #1
jeanluc1
You have tested it for both VS2008 and VS2010? https://chromiumcodereview.appspot.com/10387164/diff/4001/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://chromiumcodereview.appspot.com/10387164/diff/4001/pylib/gyp/generator/msvs.py#newcode1460 pylib/gyp/generator/msvs.py:1460: ...
8 years, 7 months ago (2012-05-16 22:11:06 UTC) #2
scottmg
On 2012/05/16 22:11:06, jeanluc1 wrote: > You have tested it for both VS2008 and VS2010? ...
8 years, 7 months ago (2012-05-16 22:20:46 UTC) #3
jeanluc1
lgtm
8 years, 7 months ago (2012-05-16 22:25:36 UTC) #4
jeanluc1
On 2012/05/16 22:25:36, jeanluc1 wrote: Could only some of the actions be triggered? Thus missing ...
8 years, 7 months ago (2012-05-16 22:26:49 UTC) #5
scottmg
On 2012/05/16 22:26:49, jeanluc1 wrote: > On 2012/05/16 22:25:36, jeanluc1 wrote: > > Could only ...
8 years, 7 months ago (2012-05-16 22:29:49 UTC) #6
jeanluc1
On 2012/05/16 22:29:49, scottmg wrote: > On 2012/05/16 22:26:49, jeanluc1 wrote: > > On 2012/05/16 ...
8 years, 7 months ago (2012-05-16 22:49:18 UTC) #7
scottmg
On 2012/05/16 22:49:18, jeanluc1 wrote: > On 2012/05/16 22:29:49, scottmg wrote: > > On 2012/05/16 ...
8 years, 7 months ago (2012-05-16 23:07:12 UTC) #8
jeanluc1
8 years, 7 months ago (2012-05-16 23:13:47 UTC) #9
LGTM

On 2012/05/16 23:07:12, scottmg wrote:
> On 2012/05/16 22:49:18, jeanluc1 wrote:
> > On 2012/05/16 22:29:49, scottmg wrote:
> > > On 2012/05/16 22:26:49, jeanluc1 wrote:
> > > > On 2012/05/16 22:25:36, jeanluc1 wrote:
> > > > 
> > > > Could only some of the actions be triggered?  Thus missing the initial
one
> > if
> > > it
> > > > does not need to be run?
> > > 
> > > I don't think so. The whole set gets attached as one command line (the
> > original
> > > problem) so it should always be at the beginning this way. (As far as I
> > > understand it anyway.)
> > 
> > In your test, after the first run, you could probably touch some of the
source
> > files and see if it behaves correctly.
> 
> https://chromiumcodereview.appspot.com/10383222/

Powered by Google App Engine
This is Rietveld 408576698