diff options
author | luxufan <luxufan@iscas.ac.cn> | 2022-03-29 11:03:33 +0800 |
---|---|---|
committer | luxufan <luxufan@iscas.ac.cn> | 2022-03-29 14:51:23 +0800 |
commit | a5900401b1475cdf98dbd210ac4bc362563cebbf (patch) | |
tree | b15b032b8e41df7883eca5322278321926885e77 /llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp | |
parent | d660c0d7938f415188277ced580eab24fc8e7809 (diff) | |
download | llvm-a5900401b1475cdf98dbd210ac4bc362563cebbf.zip llvm-a5900401b1475cdf98dbd210ac4bc362563cebbf.tar.gz llvm-a5900401b1475cdf98dbd210ac4bc362563cebbf.tar.bz2 |
[RISCV][test] Make PATH empty when testing --gcc-toolchain is multilib_riscv_elf_sdk
Due to D79842, clang dirver would search possible tool name in both possible
locations, then moving to the next name. The gcc toolchain `llvm-project/clang/test/Driver/
Inputs/multilib_riscv_elf_sdk` don't have a `riscv64-unknown-elf-ld` executable in
`llvm-project/clang/test/Driver/Inputs/multilib_riscv_elf_sdk/bin/`. So when searching
`riscv64-unknown-elf-ld`, if there is a `riscv64-unknown-elf-ld` in `PATH`, the
test would fail.
This patch makes the `PATH` empty when testing it.
Differential Revision: https://reviews.llvm.org/D122588
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp')
0 files changed, 0 insertions, 0 deletions