about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-01-22 23:45:52 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2014-01-23 11:45:23 +0100
commit8cce35e490ce259244656e12d272ab1915b0541b (patch)
tree7217882021ff93b5751d291496f4a9ef0d3d31a7 /src/rustllvm/RustWrapper.cpp
parentcdd146b8954d704a07a4445f00ef8ed0f65da096 (diff)
downloadrust-8cce35e490ce259244656e12d272ab1915b0541b.tar.gz
rust-8cce35e490ce259244656e12d272ab1915b0541b.zip
Follow symlinks in sysroot
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions