Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate relative paths for -C rpath again #23283

Merged
merged 2 commits into from
Mar 24, 2015
Merged

Conversation

brson
Copy link
Contributor

@brson brson commented Mar 11, 2015

Fix regression in -C rpath that causes failures with symlinks

The new relative_from method no longer supports the case on unix
where both paths are absolute, which -C rpath depended on. This
version fixes the problem by copying the old path_relative_from
function into the rpath module.

Fixes #23140

After experimenting with the new relative_from function on Path I'm not sure what it's use case is. It no longer even figures out that the relative path from /foo/bar to /foo/baz/qux is ../baz/qux.

@rust-highfive
Copy link
Collaborator

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

cc @aturon

@bors
Copy link
Contributor

bors commented Mar 13, 2015

☔ The latest upstream changes (presumably #23229) made this pull request unmergeable. Please resolve the merge conflicts.

The new `relative_from` method no longer supports the case on unix
where both paths are absolute, which `-C rpath` depended on. This
version fixes the problem by copying the old path_relative_from
function into the rpath module.

Fixes rust-lang#23140
@alexcrichton
Copy link
Member

@bors: r+ 9ec9bc6

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Mar 23, 2015
Fix regression in -C rpath that causes failures with symlinks

The new `relative_from` method no longer supports the case on unix
where both paths are absolute, which `-C rpath` depended on. This
version fixes the problem by copying the old path_relative_from
function into the rpath module.

Fixes rust-lang#23140

After experimenting with the new `relative_from` function on `Path` I'm not sure what it's use case is. It no longer even figures out that the relative path from `/foo/bar` to `/foo/baz/qux` is `../baz/qux`.
@bors bors merged commit 9ec9bc6 into rust-lang:master Mar 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compiler panic on OS X: 'can't create relative paths across filesystems' (regression)
5 participants