[RISCV] Fix sysroot tests without GCC on RISC-V hosts with GCC
authorLuís Marques <luismarques@lowrisc.org>
Tue, 25 Feb 2020 14:15:16 +0000 (14:15 +0000)
committerLuís Marques <luismarques@lowrisc.org>
Tue, 25 Feb 2020 14:17:45 +0000 (14:17 +0000)
commit91f7f0d8e3ef2b6be07bc9621de075ff11c730c9
tree1ea3c6ec78f956025f6cc45212b642ba9082db9a
parent7d91fd23dfa8ad33b3d270b6a2b8f6cf6a589a38
[RISCV] Fix sysroot tests without GCC on RISC-V hosts with GCC

D68391 added tests that check scenarios where no RISC-V GCC toolchain is
supposed to be detected. When running the tests on RISC-V hosts the system's
GCC toolchain will be detected, and the tests will fail. This patch adds a
`--gcc-toolchain` option pointing to a path where no GCC toolchain is
present, ensuring that the tests are run under the expected conditions, and
therefore are able to pass in all test environments.

Differential Revision: https://reviews.llvm.org/D75061
clang/test/Driver/riscv32-toolchain-extra.c
clang/test/Driver/riscv64-toolchain-extra.c