]> git.lizzy.rs Git - rust.git/commit
auto merge of #11750 : bnoordhuis/rust/follow-rustc-symlink, r=thestinger
authorbors <bors@rust-lang.org>
Fri, 24 Jan 2014 14:06:33 +0000 (06:06 -0800)
committerbors <bors@rust-lang.org>
Fri, 24 Jan 2014 14:06:33 +0000 (06:06 -0800)
commita5ab960d2e443f61511b19ad80221d1f99fd0692
treef47ca2e39f6c232875819f9c996a4b084de61bc0
parent5675f2813f86ccc6d94251f447661939d9ac3a63
parent51103c89d06953fc534572723f030b292fabe73d
auto merge of #11750 : bnoordhuis/rust/follow-rustc-symlink, r=thestinger

Before this commit, rustc looked in `dirname $0`/../lib for libraries
but that doesn't work when rustc is invoked through a symlink.

This commit makes rustc look in `dirname $(readlink $0)`/../lib, i.e.
it first canonicalizes the symlink before walking up the directory tree.

Fixes #3632.