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

Issue 10831183: Fixes an issue where OutputDirectory and IntermediateDirectory were being (Closed)

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

Description

Fixes an issue where OutputDirectory and IntermediateDirectory were being incorrectly generated without a trailing slash on MSVS 2008. This only manifested as an issue when running non-cygwin actions under MSVS2008, where the symptoms would be that a tool using OutDir would write to directories such as "Releaseobj\\some\\subdir" instead of "Release\\obj\\some\\subdir". Unfortunately, the wrong path usually wouldn't cause the tool to _fail_, except when a subsequent step tried to read the output of the previous tool, causing the secondary tool to fail with confusing errors (reporting that the correct path could not, in fact, be read). Committed: https://code.google.com/p/gyp/source/detail?r=1466

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -20 lines) Patch
M pylib/gyp/MSVSSettings.py View 1 2 3 4 5 6 3 chunks +20 lines, -6 lines 0 comments Download
M pylib/gyp/generator/msvs.py View 1 2 3 4 5 6 7 5 chunks +10 lines, -9 lines 0 comments Download
M test/builddir/gyptest-all.py View 1 1 chunk +1 line, -1 line 0 comments Download
M test/builddir/gyptest-default.py View 1 1 chunk +1 line, -1 line 0 comments Download
M test/intermediate_dir/gyptest-intermediate-dir.py View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
iannucci
It's always the simplest things...
8 years, 4 months ago (2012-08-06 23:52:49 UTC) #1
scottmg
I assume the current tests pass? Can you add a new test for this case ...
8 years, 4 months ago (2012-08-06 23:54:38 UTC) #2
iannucci
On 2012/08/06 23:54:38, scottmg wrote: > I assume the current tests pass? > > Can ...
8 years, 4 months ago (2012-08-07 00:00:54 UTC) #3
scottmg
lgtm, sorry I missed that when that test got added.
8 years, 4 months ago (2012-08-07 00:01:58 UTC) #4
iannucci
PT(another)L... It turns out my initial implementation doesn't work (FixPath kills a trailing slash), and ...
8 years, 4 months ago (2012-08-08 16:57:17 UTC) #5
scottmg
lgtm, but please watch/roll in the AM so we'll be here to revert if necessary. ...
8 years, 4 months ago (2012-08-08 17:05:39 UTC) #6
iannucci
On 2012/08/08 17:05:39, scottmg wrote: > lgtm, but please watch/roll in the AM so we'll ...
8 years, 4 months ago (2012-08-08 21:52:49 UTC) #7
scottmg
(i'd be surprised if an "in" + a regex was faster than 4x replace, but ...
8 years, 4 months ago (2012-08-08 22:02:56 UTC) #8
iannucci
Yeah it's probably not faster in reality (since these strings are all very short anyhow) ...
8 years, 4 months ago (2012-08-08 22:09:44 UTC) #9
scottmg
8 years, 4 months ago (2012-08-08 22:10:39 UTC) #10
lgtm

Powered by Google App Engine
This is Rietveld 408576698