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

Issue 10269018: ninja windows: handle more cases in program quoting (Closed)

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

Description

ninja windows: handle more cases in program quoting The first argument of a command (the program) can't always be quoted on Windows. In particular, the 'call x.bat' form has to be handled specially. R=thakis@chromium.org BUG=125606 Committed: https://code.google.com/p/gyp/source/detail?r=1349

Patch Set 1 #

Patch Set 2 : remove file #

Patch Set 3 : fancier quoting #

Total comments: 11

Patch Set 4 : additional test, add missing file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -0 lines) Patch
M pylib/gyp/msvs_emulation.py View 1 2 3 1 chunk +15 lines, -1 line 0 comments Download
A test/win/command-quote/a.S View 0 chunks +-1 lines, --1 lines 0 comments Download
A test/win/command-quote/bat with spaces.bat View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A test/win/command-quote/command-quote.gyp View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A test/win/command-quote/go.bat View 1 chunk +7 lines, -0 lines 0 comments Download
A test/win/gyptest-command-quote.py View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scottmg
8 years, 7 months ago (2012-05-01 00:08:58 UTC) #1
scottmg
On 2012/05/01 00:08:58, scottmg wrote: Hmm, it would seem this does not work in all ...
8 years, 7 months ago (2012-05-01 00:35:30 UTC) #2
scottmg
Handles all existing tests + new one now.
8 years, 7 months ago (2012-05-01 16:50:48 UTC) #3
Nico
http://chromiumcodereview.appspot.com/10269018/diff/5001/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): http://chromiumcodereview.appspot.com/10269018/diff/5001/pylib/gyp/msvs_emulation.py#newcode59 pylib/gyp/msvs_emulation.py:59: program = args[0] if args else '' nit: I'd ...
8 years, 7 months ago (2012-05-01 17:17:26 UTC) #4
scottmg
http://chromiumcodereview.appspot.com/10269018/diff/5001/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): http://chromiumcodereview.appspot.com/10269018/diff/5001/pylib/gyp/msvs_emulation.py#newcode59 pylib/gyp/msvs_emulation.py:59: program = args[0] if args else '' On 2012/05/01 ...
8 years, 7 months ago (2012-05-01 18:40:14 UTC) #5
Nico
8 years, 7 months ago (2012-05-01 20:10:27 UTC) #6
lgtm

http://chromiumcodereview.appspot.com/10269018/diff/5001/pylib/gyp/msvs_emula...
File pylib/gyp/msvs_emulation.py (right):

http://chromiumcodereview.appspot.com/10269018/diff/5001/pylib/gyp/msvs_emula...
pylib/gyp/msvs_emulation.py:167: '$(PlatformName)': 'Win32', # TODO(scottmg):
Support for x64 toolchain.
On 2012/05/01 18:40:14, scottmg wrote:
> On 2012/05/01 17:17:26, Nico wrote:
> > That part landed already and needs a rebase, right?
> 
> You lost me. There's nothing here that's related to this change that I know
of.

Doh, looked at the delta from a previous patch set here :-)

Powered by Google App Engine
This is Rietveld 408576698