Significantly fix Clang's header search for Ubuntu (and possibly othermodern Debian-based distributions) due to on-going multiarch madness.It appears that when the multiarch heeader search support
Significantly fix Clang's header search for Ubuntu (and possibly othermodern Debian-based distributions) due to on-going multiarch madness.It appears that when the multiarch heeader search support went into theclang driver, it went in in a quite bad state. The order of includescompletely failed to match the order exhibited by GCC, and in a specificcase -- when the GCC triple and the multiarch triple don't match as withi686-linux-gnu and i386-linux-gnu -- we would absolutely fail to findthe libstdc++ target-specific header files.I assume that folks who have been using Clang on Ubuntu 32-bit systemshave been applying weird patches to hack around this. I can't imaginehow else it could have worked. This was originally reported by a 64-bitoperating system user who had a 32-bit crosscompiler installed. We triedto use that rather than the bi-arch support of the 64-bit compiler, butfailed due to the triple differences.I've corrected all the wrong orderings in the existing tests and addeda specific test for the multiarch triple strings that are different ina significant way. This should significantly improve the usability ofClang when checked out vanilla from upstream onto Ubuntu machines withan i686 GCC installation for whatever reason.llvm-svn: 216531
show more ...