]> granicus.if.org Git - clang/commit
Fix clash of gcc toolchains in driver regression tests.
authorSamuel Antao <sfantao@us.ibm.com>
Mon, 5 Jan 2015 17:07:42 +0000 (17:07 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Mon, 5 Jan 2015 17:07:42 +0000 (17:07 +0000)
commitd0e6bf564768403312545407a35866a989d938a7
treebaeaf351ff16cbb1f1873941f29dcfcd9bb467d0
parent35276390608adec9840c7ed64f2ee211162a97cb
Fix clash of gcc toolchains in driver regression tests.

For some regression tests 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. 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225182 91177308-0d34-0410-b5e6-96231b3b80d8
test/Driver/constructors.c
test/Driver/env.c
test/Driver/gcc-version-debug.c
test/Driver/linux-header-search.cpp
test/Driver/linux-ld.c
test/Driver/mips-reduced-toolchain.cpp
test/Driver/pic.c