Hi all, The driver regression tests for the hexagon target rely on the minimal/dummy toolchain that comes in the Inputs folder included in the clang driver tests’s folder. The path to the right toolchain is specified using the -ccc-install-dir 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 -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 patch 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. The modified files are the following: lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h lib/Driver/Tools.cpp test/Driver/hexagon-toolchain-elf.c test/Driver/hexagon-toolchain.c Thanks, Sam (See attached file: clang_hexagon_toolchain.patch)
clang_hexagon_toolchain.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
