Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clang/Gnu: Scan GCC with triple without vendor if vendor is unknown
If ScanLibDirForGCCTriple with target triple fails, let's try the triple with vendor stripped if vendor is unknown. Debian always uses triples without a vendor section. In general, triples without a vendor section is the most similar aliases than any other aliases. To archive this, we add a private member TripleNoVendor to GCCInstallationDetector. This modification makes testcases riscv32-toolchain.c and riscv64-toolchain.c fail. The reason is that they are wrong: --triple riscv64-unknown-elf tries to use riscv64-unknown-linux-gnu first. This patch accidentally fixes this problem. We also drop the path delimiter pattern {{/|\\\\}}, as these 2 tests are disabled on Windows, and in fact the positions of this pattern are not correct. Reviewed by: MaskRay Differential Revision: https://reviews.llvm.org/D158183
- Loading branch information