]> granicus.if.org Git - clang/commit
Fix clash of gcc toolchains in hexagon driver regression tests.
authorSamuel Antao <sfantao@us.ibm.com>
Fri, 7 Nov 2014 17:48:03 +0000 (17:48 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Fri, 7 Nov 2014 17:48:03 +0000 (17:48 +0000)
commite0886426fac31da4c34f2b978e8c1e9e797870fe
tree45cc18b8c352ab5385c31a65367373823e3b906e
parentbaca33cfbce6ffb44b9a4ec9fbc7dfd99f0e1cff
Fix clash of gcc toolchains in hexagon driver regression tests.

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 -ccc-install-dir. This causes several regression tests to fail as they will be using an unexpected path. Adding the switch --gcc-toolchain="" in each test command is not enough as the hexagon toolchain implementation in the driver is not evaluating this argument. This commit modifies the hexagon toolchain to take the --gcc-toolchain="" argument into account when deciding the toolchain path, similarly to what is already done for other targets toolchains. Additionally, the faulty regression tests are modified in order to --gcc-toolchain="" be passed to the commands.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221535 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
lib/Driver/Tools.cpp
test/Driver/hexagon-toolchain-elf.c
test/Driver/hexagon-toolchain.c