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

Issue 13950005: Fully qualify path to cl.exe for ninja windows, and support *_wrapper from environment (Closed)

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

Description

ninja windows: Fully qualify path to cl.exe Part of upgrading to ninja trunk with more efficient dependency tracking. Does path search for correct cl.exe at generation time rather than relying on the path being set properly. Supports CC_wrapper/CXX_wrapper for goma/distcc. *_wrapper variables are now supported from the environment on all platforms. R=thakis@chromium.org BUG=chromium:232421 Committed: https://code.google.com/p/gyp/source/detail?r=1612

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -5 lines) Patch
M pylib/gyp/generator/ninja.py View 1 2 4 chunks +15 lines, -5 lines 2 comments Download
M pylib/gyp/msvs_emulation.py View 3 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
scottmg
ukai, any suggestions on a way to get a full path to cl.exe at gyp ...
7 years, 8 months ago (2013-04-15 21:37:37 UTC) #1
Nico
Looks fine. Since it's part 1/N, maybe have a tracking bug? ukai wrote https://groups.google.com/forum/?fromgroups=#!topic/gyp-developer/L7o1Qzo7PqM for ...
7 years, 8 months ago (2013-04-16 23:02:59 UTC) #2
scottmg
On 2013/04/16 23:02:59, Nico wrote: > Looks fine. > > Since it's part 1/N, maybe ...
7 years, 8 months ago (2013-04-17 17:01:46 UTC) #3
scottmg
> Updated the patch the support CC_wrapper on Windows. Setting this in > include.gypi works ...
7 years, 8 months ago (2013-04-17 17:39:06 UTC) #4
Nico
lgtm Maybe make it a little more clear that this adds support for *_wrapper coming ...
7 years, 8 months ago (2013-04-17 17:53:59 UTC) #5
scottmg
On 2013/04/17 17:53:59, Nico wrote: > lgtm > > Maybe make it a little more ...
7 years, 8 months ago (2013-04-17 17:55:53 UTC) #6
scottmg
Committed patchset #3 manually as r1612.
7 years, 8 months ago (2013-04-17 18:13:52 UTC) #7
Reid Kleckner
https://codereview.chromium.org/13950005/diff/7001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/13950005/diff/7001/pylib/gyp/generator/ninja.py#newcode1417 pylib/gyp/generator/ninja.py:1417: if key.endswith('_wrapper'): This doesn't seem to work for me, ...
7 years, 7 months ago (2013-05-08 18:55:41 UTC) #8
scottmg
https://codereview.chromium.org/13950005/diff/7001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/13950005/diff/7001/pylib/gyp/generator/ninja.py#newcode1417 pylib/gyp/generator/ninja.py:1417: if key.endswith('_wrapper'): On 2013/05/08 18:55:42, Reid Kleckner wrote: > ...
7 years, 7 months ago (2013-05-08 19:23:33 UTC) #9
scottmg
7 years, 7 months ago (2013-05-08 19:29:31 UTC) #10
Message was sent while issue was closed.
On 2013/05/08 19:23:33, scottmg wrote:
>
https://codereview.chromium.org/13950005/diff/7001/pylib/gyp/generator/ninja.py
> File pylib/gyp/generator/ninja.py (right):
> 
>
https://codereview.chromium.org/13950005/diff/7001/pylib/gyp/generator/ninja....
> pylib/gyp/generator/ninja.py:1417: if key.endswith('_wrapper'):
> On 2013/05/08 18:55:42, Reid Kleckner wrote:
> > This doesn't seem to work for me, because Python stores the env var keys as
> all
> > uppercase, leading this comparison to always fail.  :(
> > 
> > Adding .lower() before .endswith might work.
> 
> Sorry. Are you using cygwin Python perhaps?
> 

Hmm, nope that's not it. Feel free to revert if it's causing problems for you.

Powered by Google App Engine
This is Rietveld 408576698