<html><body>
<p><font size="2" face="sans-serif">Hi all,</font><br>
<br>
<font size="2" face="sans-serif">Some regression tests for the driver rely on the minimal/dummy system root that comes in the Inputs folder included in the clang driver tests’s folder. The path to the right toolchain is specified using the —sysroot switch. However, if clang was configured with a custom gcc toolchain (either by using GCC_INSTALL_PREFIX in cmake or the equivalent configure command), the path to the custom gcc toolchain path takes precedence to the one specified by sysroot. This causes several regression tests to fail as they will be using an unexpected path.</font><br>
<br>
<font size="2" face="sans-serif">This patch fixes this issue by adding --gcc-toolchain=“” to all tests that rely on that. The empty string causes the driver to pick the path from sysroot instead. There aren’t any changes in the driver’s code, only the tests are modified. The driver's regression tests for hexagon also have similar issues but these require modifications in the driver’s code. I’ll send these fixes in a separate patch.</font><br>
<br>
<font size="2" face="sans-serif">The modified files are the following:</font><br>
<font size="2" face="sans-serif">test/Driver/constructors.c</font><br>
<br>
<font size="2" face="sans-serif">test/Driver/gcc-version-debug.c</font><br>
<br>
<font size="2" face="sans-serif">test/Driver/linux-header-search.cpp</font><br>
<br>
<font size="2" face="sans-serif">test/Driver/linux-ld.c</font><br>
<br>
<font size="2" face="sans-serif">test/Driver/mips-reduced-toolchain.cpp</font><br>
<br>
<br>
<br>
<font size="2" face="sans-serif">Thanks,</font><br>
<br>
<font size="2" face="sans-serif">Sam</font><br>
<br>
<i>(See attached file: clang_gcc_toolchain_gen_and_mips_fix.patch)</i></body></html>