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

Issue 9107028: ninja: split out the logic for linking from target writing (Closed)

Created:
8 years, 11 months ago by Evan Martin
Modified:
8 years, 11 months ago
Reviewers:
Nico
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

ninja: split out the logic for linking from target writing There was a bunch of code in WriteTarget that only applied when writing out something involving the linker. Split this out as a step from separating output_binary from output. Committed: http://code.google.com/p/gyp/source/detail?r=1147

Patch Set 1 #

Total comments: 1

Patch Set 2 : fixes #

Patch Set 3 : fix branch #

Total comments: 3

Patch Set 4 : once more #

Patch Set 5 : once more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -70 lines) Patch
M pylib/gyp/generator/ninja.py View 1 2 3 2 chunks +63 lines, -70 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Evan Martin
8 years, 11 months ago (2012-01-11 23:10:31 UTC) #1
Evan Martin
One question about something I may have broken: what does it mean to have a ...
8 years, 11 months ago (2012-01-11 23:11:43 UTC) #2
Evan Martin
http://codereview.chromium.org/9107028/diff/1/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (left): http://codereview.chromium.org/9107028/diff/1/pylib/gyp/generator/ninja.py#oldcode617 pylib/gyp/generator/ninja.py:617: output_binary = self.ComputeOutput(spec, type='none') These two lines are the ...
8 years, 11 months ago (2012-01-11 23:12:38 UTC) #3
Nico
On 2012/01/11 23:11:43, Evan Martin wrote: > One question about something I may have broken: ...
8 years, 11 months ago (2012-01-11 23:27:20 UTC) #4
Evan Martin
On 2012/01/11 23:27:20, Nico wrote: > It looks like dependent_on_bundle loses its dependency on the ...
8 years, 11 months ago (2012-01-11 23:34:52 UTC) #5
Evan Martin
On 2012/01/11 23:34:52, Evan Martin wrote: > On 2012/01/11 23:27:20, Nico wrote: > > It ...
8 years, 11 months ago (2012-01-11 23:35:21 UTC) #6
Evan Martin
On 2012/01/11 23:35:21, Evan Martin wrote: obj/dependent_on_bundle.executable.o $ > > - lib/libmy_bundle.so > > + ...
8 years, 11 months ago (2012-01-11 23:36:27 UTC) #7
Nico
On 2012/01/11 23:36:27, Evan Martin wrote: > On 2012/01/11 23:35:21, Evan Martin wrote: > obj/dependent_on_bundle.executable.o ...
8 years, 11 months ago (2012-01-11 23:37:52 UTC) #8
Evan Martin
seems to pass on linux and mac http://codereview.chromium.org/9107028/diff/1003/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): http://codereview.chromium.org/9107028/diff/1003/pylib/gyp/generator/ninja.py#newcode604 pylib/gyp/generator/ninja.py:604: implicit_deps.add(output) From ...
8 years, 11 months ago (2012-01-12 02:53:16 UTC) #9
Nico
8 years, 11 months ago (2012-01-12 06:24:33 UTC) #10
LGTM!

http://codereview.chromium.org/9107028/diff/1003/pylib/gyp/generator/ninja.py
File pylib/gyp/generator/ninja.py (right):

http://codereview.chromium.org/9107028/diff/1003/pylib/gyp/generator/ninja.py...
pylib/gyp/generator/ninja.py:602: if 'lastchange' in binary:
'lastchange' is probably a stamp file, so i think it would be clearer if you
said "in output" here (binary = output in that case; but you're adding output to
implicit_deps 2 lines below)

http://codereview.chromium.org/9107028/diff/1003/pylib/gyp/generator/ninja.py...
pylib/gyp/generator/ninja.py:642: output =
self.WriteCollapsedDependencies('foobar', final_deps)[0]
nit: Maybe there's a better name than 'foobar'.

Powered by Google App Engine
This is Rietveld 408576698