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

Issue 11821060: Change ninja rpath generation to be more like make.

Created:
7 years, 11 months ago by cwolfe
Modified:
7 years, 11 months ago
Reviewers:
Nico
CC:
gyp-developer_googlegroups.com, davidjames
Visibility:
Public.

Description

Change ninja rpath generation to be more like make. Currently, the ninja generator adds -Wl,rpath in every executable for linux targets, while the make generator includes it only for those with .so dependencies. This patch changes the ninja generator to behave like make. Added a linux-specific unit test to verify the value and absence of the rpath for executables with and without solib dependencies. BUG=gyp:315 TEST=On linux: unit tests pass (45 no result), full Chrome build no longer has rpath on chrome_sandbox.

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -2 lines) Patch
M pylib/gyp/generator/ninja.py View 1 3 chunks +4 lines, -2 lines 0 comments Download
A test/linux/gyptest-implicit-rpath.py View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A test/linux/implicit-rpath/file.c View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/linux/implicit-rpath/main.c View 1 1 chunk +1 line, -0 lines 0 comments Download
A test/linux/implicit-rpath/test.gyp View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
cwolfe
thakis: please review davidjames: fyi Not wedded to this approach, but more consistency seemed like ...
7 years, 11 months ago (2013-01-10 20:44:05 UTC) #1
cwolfe
Added unit test, and fixed my environment so that the unit tests actually pass. Changed ...
7 years, 11 months ago (2013-01-10 21:16:38 UTC) #2
Nico
lgtm! (with comments addressed) https://codereview.chromium.org/11821060/diff/3001/test/linux/gyptest-implicit-rpath.py File test/linux/gyptest-implicit-rpath.py (right): https://codereview.chromium.org/11821060/diff/3001/test/linux/gyptest-implicit-rpath.py#newcode39 test/linux/gyptest-implicit-rpath.py:39: if (GetRpaths('shared_executable') != [expect]): ifs ...
7 years, 11 months ago (2013-01-10 21:34:57 UTC) #3
Nico
And try running `gcl try youchange` to send tryjobs. (I don't remember if that works ...
7 years, 11 months ago (2013-01-10 21:35:26 UTC) #4
cwolfe
Thanks! 'gcl try' does work, will wait for those to pass. Initially looked at the ...
7 years, 11 months ago (2013-01-10 21:49:47 UTC) #5
cwolfe
gyp-mac failed once (825). Passed on the second try (826), so assuming it's flake. Error ...
7 years, 11 months ago (2013-01-10 22:36:23 UTC) #6
Nico
On 2013/01/10 22:36:23, cwolfe wrote: > gyp-mac failed once (825). Passed on the second try ...
7 years, 11 months ago (2013-01-10 23:03:05 UTC) #7
cwolfe
chrome-troopers got gyp-linux fixed. May be something else broken, as the Commit checkbox doesn't seem ...
7 years, 11 months ago (2013-01-11 20:24:25 UTC) #8
M-A Ruel
On 2013/01/11 20:24:25, cwolfe wrote: > chrome-troopers got gyp-linux fixed. May be something else broken, ...
7 years, 11 months ago (2013-01-15 16:26:25 UTC) #9
cwolfe
7 years, 11 months ago (2013-01-15 16:41:34 UTC) #10
On 2013/01/15 16:26:25, Marc-Antoine Ruel wrote:
> On 2013/01/11 20:24:25, cwolfe wrote:
> > chrome-troopers got gyp-linux fixed. May be something else broken, as the
> Commit
> > checkbox doesn't seem to be triggering anything.
> 
> You have to commit manually. There's no CQ for gyp.

Thanks -- Nico already committed it for me (e-mails on the list).

Powered by Google App Engine
This is Rietveld 408576698