]> granicus.if.org Git - clang/commit
Fix clang installed path to handle case where clang is invoked through a symlink
authorMehdi Amini <mehdi.amini@apple.com>
Sun, 30 Oct 2016 23:26:13 +0000 (23:26 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sun, 30 Oct 2016 23:26:13 +0000 (23:26 +0000)
commitcc28bf9b7760908d1087227177762cd4fdf9cc13
treeeac291e2225076316cf66b90916622e146389697
parentc6e26e7f0138f2a7388e9b83e9a4053214e74a62
Fix clang installed path to handle case where clang is invoked through a symlink

This code path is used when generating the path to libLTO.dylib, which
is passed to the linker as `-lto_library'.
Without this, if clang is invoked through a symlink, libLTO is
searched in a path relative to where the symlink is instead of
where clang is actually installed.

Fix PR30811.

Patch by: Jack Howarth

Differential Revision: https://reviews.llvm.org/D26116

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285525 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp