]> granicus.if.org Git - clang/commit
[Driver] Support obtaining active toolchain from gcc-config on Gentoo
authorMichal Gorny <mgorny@gentoo.org>
Tue, 25 Oct 2016 15:07:41 +0000 (15:07 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Tue, 25 Oct 2016 15:07:41 +0000 (15:07 +0000)
commit9f298dd31a9937cd0bff5963d6e9cd6caa89a9b5
tree39bfd103f39a10421591662270f6b3a5624339c1
parent0e776a3b8e697ec27cc3a665df4e5eded0cbbfba
[Driver] Support obtaining active toolchain from gcc-config on Gentoo

Support using gcc-config to determine the correct GCC toolchain location
on Gentoo. In order to do that, attempt to read gcc-config configuration
form [[sysroot]]/etc/env.d/gcc, if no custom toolchain location is
provided.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285074 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/etc/env.d/gcc/config-x86_64-pc-linux-gnu [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/etc/env.d/gcc/x86_64-pc-linux-gnu-4.9.3 [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/etc/gentoo-release [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/usr/include/.keep [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/crtbegin.o [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3/.keep [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/crtbegin.o [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5.4.0/.keep [new file with mode: 0644]
test/Driver/Inputs/gentoo_linux_gcc_multi_version_tree/usr/x86_64-pc-linux-gnu/lib/.keep [new file with mode: 0644]
test/Driver/linux-header-search.cpp