[Driver] Fix finding multilib gcc install on Gentoo (with gcc-config)Fix the gcc-config code to support multilib gcc installs properly. Thissolves two problems: -mx32 using the 64-bit gcc director
[Driver] Fix finding multilib gcc install on Gentoo (with gcc-config)Fix the gcc-config code to support multilib gcc installs properly. Thissolves two problems: -mx32 using the 64-bit gcc directory (due to matchinginstallation triple), and -m32 not respecting gcc-config at all (due tomismatched installation triple).In order to fix the former issue, split the multilib scan out ofGeneric_GCC::GCCInstallationDetector::ScanLibDirForGCCTriple() (the codeis otherwise unchanged), and call it for each installation found viagcc-config.In order to fix the latter issue, split the gcc-config processing out ofGeneric_GCC::GCCInstallationDetector::init() and repeat it for alltriples, including extra and biarch triples. The only changein the gcc-config code itself is adding the call to multilib scan.Convert the gentoo_linux_gcc_multi_version_tree test input to multilibx86_64+32+x32 install, and add appropriate tests to linux-header-searchand linux-ld.Differential Revision: https://reviews.llvm.org/D26887llvm-svn: 289436
show more ...
[Driver] Support obtaining active toolchain from gcc-config on GentooSupport using gcc-config to determine the correct GCC toolchain locationon Gentoo. In order to do that, attempt to read gcc-con
[Driver] Support obtaining active toolchain from gcc-config on GentooSupport using gcc-config to determine the correct GCC toolchain locationon Gentoo. In order to do that, attempt to read gcc-config configurationform [[sysroot]]/etc/env.d/gcc, if no custom toolchain location isprovided.Differential Revision: https://reviews.llvm.org/D25661llvm-svn: 285074