]> granicus.if.org Git - clang/commit
Teach Clang to look in its installation libdir for libraries (such as
authorChandler Carruth <chandlerc@gmail.com>
Tue, 21 Jan 2014 22:49:05 +0000 (22:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 21 Jan 2014 22:49:05 +0000 (22:49 +0000)
commita19edf4fd6500b256154f8b5e89e6231735f3ba7
tree08414a5710f4860630afb8ccfaa59121ca466b3e
parent4e2aa2004e7b93bad2d3e0aa1d2f25a75c31e8ec
Teach Clang to look in its installation libdir for libraries (such as
libc++) when the installation is within the system root.

This doesn't really help cross compiles much, but we don't (currently)
have a great story around libc++, cross compiles, and who is responsible
for building and/or installing the libraries. However, it handles the
very common case of non-cross builds in a way entirely consistent with
GCC, so I'm hopeful this won't really hose anyone.

This is the second patch that I think should be backported to 3.4 to
give folks an easy to checkout and install working Clang+libc++
toolchain.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199769 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
test/Driver/linux-ld.c