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

Issue 197823008: ninja: Use rsp files for SOLINK and SOLINK(module) on linux and mac. (Closed)

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

Description

ninja: Use rsp files for SOLINK and SOLINK(module) on linux and mac. To support link lines longer than 128 kiB == 131072 bytes, like it's needed for chromium's content library. R=scottmg@chromium.org Committed: https://code.google.com/p/gyp/source/detail?r=1871

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 3

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

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

Messages

Total messages: 18 (0 generated)
Nico
http://maxcdn.creativeadawards.com/wp-content/uploads/2010/01/GOSF-David-o.jpg
6 years, 9 months ago (2014-03-13 03:02:40 UTC) #1
Nico
ninja: error: WriteFile(lib/libfoolib1.so lib/libfoolib1.so.TOC.rsp): Unable to create file. No such file or directory Bleh, this ...
6 years, 9 months ago (2014-03-13 03:08:57 UTC) #2
Nico
Now with @lib.rsp instead of @out.rsp
6 years, 9 months ago (2014-03-13 03:15:33 UTC) #3
Nico
…better, but os x complains with ninja: error: WriteFile("Dependency Framework.framework/Versions/A/Dependency Framework".rsp): Unable to create file. ...
6 years, 9 months ago (2014-03-13 03:22:31 UTC) #4
Nico
d) Don't use $lib.rsp, but $linker_file_list and set that explicitly
6 years, 9 months ago (2014-03-13 03:24:26 UTC) #5
Nico
Haha, with this ninja creates the rsp file "Dependency Framework.framework.rsp" (with quotes in the filename) ...
6 years, 9 months ago (2014-03-13 03:31:15 UTC) #6
Nico
(I have to say we have a pretty good test suite though, which found lots ...
6 years, 9 months ago (2014-03-13 03:34:55 UTC) #7
scottmg
https://codereview.chromium.org/197823008/diff/80001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/197823008/diff/80001/pylib/gyp/generator/ninja.py#newcode1918 pylib/gyp/generator/ninja.py:1918: '$ar /nologo /ignore:4221 /OUT:$out @$lib.rsp' % looks like this ...
6 years, 9 months ago (2014-03-13 03:34:58 UTC) #8
scottmg
fwiw, I couldn't reproduce on my linux box so I guess it might not be ...
6 years, 9 months ago (2014-03-13 03:36:26 UTC) #9
scottmg
lgtm when our test gauntlet is happy. https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/ninja.py#newcode1106 pylib/gyp/generator/ninja.py:1106: link_file_list = ...
6 years, 9 months ago (2014-03-13 03:38:50 UTC) #10
Nico
Patch set 8 will work for sure!
6 years, 9 months ago (2014-03-13 03:43:11 UTC) #11
Nico
https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/ninja.py#newcode1106 pylib/gyp/generator/ninja.py:1106: link_file_list = link_file_list.replace(' ', '_') On 2014/03/13 03:38:51, scottmg ...
6 years, 9 months ago (2014-03-13 03:44:28 UTC) #12
scottmg
On 2014/03/13 03:44:28, Nico wrote: > https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/ninja.py > File pylib/gyp/generator/ninja.py (right): > > https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/ninja.py#newcode1106 > ...
6 years, 9 months ago (2014-03-13 03:45:21 UTC) #13
Nico
Committed patchset #8 manually as r1871 (presubmit successful).
6 years, 9 months ago (2014-03-13 03:47:50 UTC) #14
Nico
ah shiiii accidentally changed windows too
6 years, 9 months ago (2014-03-13 03:49:07 UTC) #15
scottmg
On 2014/03/13 03:49:07, Nico wrote: > ah shiiii accidentally changed windows too Oh, I thought ...
6 years, 9 months ago (2014-03-13 03:56:28 UTC) #16
scottmg
Hrm, evidently I'm wrong. Feh.
6 years, 9 months ago (2014-03-13 03:56:59 UTC) #17
Nico
6 years, 9 months ago (2014-03-13 21:15:33 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/nin...
File pylib/gyp/generator/ninja.py (right):

https://codereview.chromium.org/197823008/diff/100001/pylib/gyp/generator/nin...
pylib/gyp/generator/ninja.py:1106: link_file_list = link_file_list.replace(' ',
'_')
On 2014/03/13 03:44:29, Nico wrote:
> On 2014/03/13 03:38:51, scottmg wrote:
> > Seems like we should just fix that in ninja? But fine to workaround of
course.
> 
> yeah, I guess :-/
> 
> But "don't use spaces in filenames except maybe in your final products" didn't
> sound so unreasonable to me until just now.

The upstream bug for this is https://github.com/martine/ninja/issues/344 (I
thought there was more recent discussion of this somewhere too, but couldn't
find it.)

Powered by Google App Engine
This is Rietveld 408576698